refreshSpotifyClientToken

suspend fun refreshSpotifyClientToken(clientId: String, clientSecret: String?, refreshToken: String?, usesPkceAuth: Boolean): Token(source)

Refresh a Spotify client token

Parameters

clientId

The Spotify application client id.

clientSecret

The Spotify application client secret (not needed for PKCE).

refreshToken

The refresh token.

usesPkceAuth

Whether this token was created using PKCE auth or not.