SpotifyUserAuthorization

class SpotifyUserAuthorization(var authorizationCode: String? = null, var tokenString: String? = null, var token: Token? = null, var refreshTokenString: String? = null, var pkceCodeVerifier: String? = null)(source)

User-defined authorization parameters

Parameters

authorizationCode

Only available when building SpotifyClientApi. Spotify auth code

token

Build the API using an existing token. If you're building SpotifyClientApi, this will be your access token. If you're building SpotifyApi, it will be your refresh token

tokenString

Build the API using an existing token (string). If you're building SpotifyClientApi, this will be your access token. If you're building SpotifyApi, it will be your refresh token. There is a very limited time constraint on these before the API automatically refreshes them

refreshTokenString

Refresh token, given as a string, to be exchanged to Spotify for a new token

pkceCodeVerifier

The code verifier generated that the client authenticated with (using its code challenge)

Constructors

Link copied to clipboard
constructor(authorizationCode: String? = null, tokenString: String? = null, token: Token? = null, refreshTokenString: String? = null, pkceCodeVerifier: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var token: Token?
Link copied to clipboard