DEV Community

Mannu
Mannu

Posted on • Updated on • Originally published at github.com

Get Your Spotify refresh token easily.....

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

Image description


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
Enter fullscreen mode Exit fullscreen mode

3.open app.js and replace client id and client secret with your client id and client secret

Image description


Getting refresh token

now just only few things are left.....

1.type this cmd

npm start
Enter fullscreen mode Exit fullscreen mode

and open this link in your browser....

2.enter your client id and client secret in the text boxes

Image description

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....

Image description

enjoy.....

Like if it helps


Top comments (0)