buildAuthorizationCodeUri

fun buildAuthorizationCodeUri(clientId: String, redirectUri: String, scope: List<String> = emptyList(), state: String? = null, showDialog: Boolean? = null): String

Builds the Spotify Accounts authorization URL for Authorization Code flow.

Return

Spotify authorization URL.

Parameters

clientId

Spotify application Client ID.

redirectUri

Redirect URI registered in Spotify Dashboard.

scope

Spotify OAuth scopes requested for this flow.

state

Opaque state value used for CSRF protection during authorization.

showDialog

Whether to force Spotify consent dialog display.