refreshToken

suspend fun refreshToken(clientId: String, clientSecret: String, refreshToken: String): SpotifyApiResponse<TokenResponse>

Refreshes an access token for Authorization Code flow.

Return

Wrapped Spotify API response with status code and parsed Spotify payload.

Parameters

clientId

Spotify application Client ID.

clientSecret

Spotify application Client Secret.

refreshToken

Refresh token used to issue a new access token.