DEV Community

Mannu
Mannu

Posted on • Edited 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


Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay