Skip to content

Latest commit

 

History

History

implicit_grant

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Spotify Implicit Grant example

This app displays your Spotify profile information using Implicit Grant to grant permissions to the app.

The implicit grant flow has some significant security flaws, so we strongly advise against using this flow. If you need to implement authorization where storing your client secret is not possible, use Authorization code with PKCE instead.

Installation

This example runs on Node.js. On its website you can find instructions on how to install it.

Install the app dependencies running:

$ npm install

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/index.html 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.