Skip to content

Latest commit

 

History

History

authorization_code_pkce

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Spotify Authorization Code with PKCE example

This app displays your Spotify profile information using Authorization Code with PKCE to grant permissions to the app.

Using your own credentials

You will need to register your app and get your own credentials from the Spotify for Developers Dashboard.

  • Create a new app in the dashboard and add http://localhost:8080 to the app's redirect URL list.
  • Once you have created your app, update the client_id and redirect_uri in the public/app.js file with the values obtained from the app settings in the dashboard.

Running the example

From a console shell:

$ npm start

Then, open http://localhost:8080 in a browser.