SpotifyUserAuthorization

class SpotifyUserAuthorization(authorizationCode: String?, tokenString: String?, token: Token?, refreshTokenString: String?, pkceCodeVerifier: String?)

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

SpotifyUserAuthorization
Link copied to clipboard
common
fun SpotifyUserAuthorization(authorizationCode: String? = null, tokenString: String? = null, token: Token? = null, refreshTokenString: String? = null, pkceCodeVerifier: String? = null)
Only available when building SpotifyClientApi.

Properties

authorizationCode
Link copied to clipboard
common
var authorizationCode: String? = null
Only available when building SpotifyClientApi.
pkceCodeVerifier
Link copied to clipboard
common
var pkceCodeVerifier: String? = null
The code verifier generated that the client authenticated with (using its code challenge)
refreshTokenString
Link copied to clipboard
common
var refreshTokenString: String? = null
Refresh token, given as a string, to be exchanged to Spotify for a new token
token
Link copied to clipboard
common
var token: Token? = null
Build the API using an existing token.
tokenString
Link copied to clipboard
common
var tokenString: String? = null
Build the API using an existing token (string).

Sources

common source
Link copied to clipboard