build Authorization Code With Pkce Uri And Launch
fun buildAuthorizationCodeWithPkceUriAndLaunch(codeChallenge: String, codeChallengeMethod: String = "S256", scope: List<String> = emptyList(), state: String? = null, showDialog: Boolean? = null): String
Builds and launches the Spotify authorization URL for PKCE flow.
Return
Spotify authorization URL.
Parameters
code Challenge
PKCE code challenge derived from the code verifier.
code Challenge Method
PKCE challenge method, typically S256.
scope
Spotify OAuth scopes requested for this flow.
state
Opaque state value used for CSRF protection during authorization.
show Dialog
Whether to force Spotify consent dialog display.