(store *auth0.Store)
| 81 | } |
| 82 | |
| 83 | func (c *Connection) SetAuthStore(store *auth0.Store) error { |
| 84 | tokens, err := store.Tokens(c.hostURL) |
| 85 | if err != nil || tokens == nil { |
| 86 | return err |
| 87 | } |
| 88 | c.auth = store |
| 89 | c.SetAuthToken(tokens.Access) |
| 90 | return nil |
| 91 | } |
| 92 | |
| 93 | func (c *Connection) SetUserAgent(useragent string) { |
| 94 | c.defaultHeader.Set("User-Agent", useragent) |