Documentation
¶
Index ¶
- func LoadToken() (*oauth2.Token, error)
- func Login(a *spotifyauth.Authenticator, redirectURL string) (*oauth2.Token, error)
- func NewAuthenticator(clientID, redirectURL string) *spotifyauth.Authenticator
- func NewSavingClient(a *spotifyauth.Authenticator, token *oauth2.Token) *http.Client
- func SaveToken(token *oauth2.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
func Login(a *spotifyauth.Authenticator, redirectURL string) (*oauth2.Token, error)
func NewAuthenticator ¶
func NewAuthenticator(clientID, redirectURL string) *spotifyauth.Authenticator
func NewSavingClient ¶
func NewSavingClient(a *spotifyauth.Authenticator, token *oauth2.Token) *http.Client
NewSavingClient creates an HTTP client that auto-refreshes OAuth tokens and persists them to disk on each refresh.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.