refreshTokenWithPkce

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

Refreshes an access token for Authorization Code with PKCE flow.

Return

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

Parameters

clientId

Spotify application Client ID.

refreshToken

Refresh token used to issue a new access token.