Documentation ¶
Overview ¶
Package auth manages Spotify API auth
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAccessToken ¶
func FetchAccessToken() string
FetchAccessToken - Returns a valid access token for the Spotify API. * If no cached access token or refresh token
- Opens browser to authorization URL
- Accepts user input of authorization code
- Exchanges authorization code for access token and refresh token
* If access token is expired
- Exchange refresh token for a new access token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.