buildAuthorizationCodeUriAndLaunch

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

Builds and launches the Spotify authorization URL for Authorization Code flow.

Return

Spotify authorization URL.

Parameters

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.