Optional
accessOptional
accessA Date object representing when the the access token expires
Optional
accessA number of seconds until the access token expires
Optional
autoSet to "true" if you want to automatically refresh the token before expiring.
Optional
clientIDClient ID used for client credentials grant
Optional
clientClient Secret used for client credentials grant
Optional
fetchA custom fetch implementation.
Optional
init: RequestInitOptional
refreshSet to "true" if you want the access token to be refreshed when it needs to be used but has expired
Optional
refreshA token that can be sent to the Spotify Accounts service in place of an authorization code. (When the access code expires, send a POST request to the Accounts service /api/token endpoint, but use this code in place of an authorization code. A new Access Token will be returned. A new refresh token might be returned too.)
Optional
scopesSpotify scopes to use for user auth
Generated using TypeDoc
AAn Access Token that can be provided in subsequent calls, for example to Spotify Web API services.