How to get Spotify refresh token?
Getting client id and client secret
1.First of all go to Spotify developer Dashboard and click on create app
2.Name your app Anything and give it any description you like.....
3.Add http://localhost:3000/
as redirect uri.....
As below
Setting up Environment
1.just open cmd prompt in any folder and run this cmd
git clone https://github.com/MannuVilasara/get-Spotify-refresh-token.git
2.then open it in vs code
run this
npm install
3.open app.js
and replace client id and client secret with your client id and client secret
Getting refresh token
now just only few things are left.....
1.type this cmd
npm start
and open this link in your browser....
2.enter your client id and client secret in the text boxes
Click on Request Authorization and Complete the authorization on next page
3.Click F12 or developer tools in the browser and go to application => local storage => http://localhost:3000/
There You will get refresh token and access token....
enjoy.....
Like if it helps
Top comments (0)