

The last method is called the Client Credentials Flow and doesn't require any user interaction but also doesn't provide any user information. The second method is called the Authorization Code Flow and just like the PKCE method it requires some interaction from the user, but will also give you access to the user's account. This is the recommended method if you need access to a user's account. The first method is called Proof Key for Code Exchange (PKCE) and requires some interaction from the user, but in turn gives you some access to the user's account.


There are three ways to request an access token. Authentication and authorizationĪfter creating a session it's time to request access to the Spotify Web API. Replace the values here with the ones given to you from Spotify.
