Token

constructor(accessToken: String, tokenType: String, expiresIn: Int, refreshToken: String? = null, scopeString: String? = null)(source)

Parameters

accessToken

An access token that can be provided in subsequent calls, for example to Spotify Web API services.

tokenType

How the access token may be used: always Bearer”.

expiresIn

The time period (in seconds) for which the access token is valid.

refreshToken

A token that can be sent to the Spotify Accounts service in place of an authorization code, null if the token was created using a method that does not support token refresh