Now Playing
Find your current song
A live demo of Spotify OAuth with PKCE — no client secret exposed.
How it works
01
Code Verifier
A random 64-char alphanumeric string is generated locally — your Code Verifier.
02
Code Challenge
You're redirected to Spotify with a SHA-256 hash of the verifier — the Code Challenge. Only this page knows the original.
03
Token Exchange
Spotify returns an auth code. We exchange it for an access token by proving we hold the original verifier — no secret needed.