NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Spotify API: Vanilla JavaScript Authorization Code Flow Login Example with PKCE

December 2023

This is bare-bones code for logging into the Spotify Web API with the PKCE OAuth2 flow. It's bascially straight from the docs but rolled into a single example that also pulls the user id to verify things are working.

Note: The reason this example gets so may scopes is because they are used for the rest of the examples on the site.


═══ § ═══