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.
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
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
andredirect_uri
in thepublic/index.html
file with the values obtained from the app settings in the dashboard.
From a console shell:
$ npm start
Then, open http://localhost:8080
in a browser.