Spotify PKCE Demo

"Client-side-only" Spotify api consumption. find source code here https://github.com/hcientist/Spotify-PKCE-Example

1. Getting an authorization code and access token

  1. Register an app with spotify and give this page's URL (or something else if you have a reason and understand what's happening) as both the website and redirect uri. Once you register, Spotify will give you a Client Id. We need that (as well as the redirect uri)in the next step.
  2. Put your app's:
    • Client Id here:
    • redirect uri here:
  3. Get auth(orization) code:

2. Have auth code, get (access)Token

Have token, make api request(s)