buildAuthorizationCodeWithPkceUri

fun buildAuthorizationCodeWithPkceUri(codeChallenge: String, codeChallengeMethod: String = "S256", scope: List<String> = emptyList(), state: String? = null, showDialog: Boolean? = null): String

Builds the Spotify authorization URL for Authorization Code with PKCE flow.

Return

Spotify authorization URL.

Parameters

codeChallenge

PKCE code challenge derived from the code verifier.

codeChallengeMethod

PKCE challenge method, typically S256.

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.