build Authorization Code With Pkce Uri
fun buildAuthorizationCodeWithPkceUri(clientId: String, redirectUri: String, codeChallenge: String, codeChallengeMethod: String = "S256", scope: List<String> = emptyList(), state: String? = null, showDialog: Boolean? = null): String
Builds the Spotify Accounts authorization URL for Authorization Code with PKCE flow.
Return
Spotify authorization URL.
Parameters
client Id
Spotify application Client ID.
redirect Uri
Redirect URI registered in Spotify Dashboard.
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.