Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 1.12 KB

README.md

File metadata and controls

28 lines (15 loc) · 1.12 KB

spotify-refresh-token

A simple site for developers to easily get their own refresh token for Spotify's API.

How to run

Clone the repo

yarn

yarn run dev

⭐ Please give this repo a star/share if it helps you at all!

Motive

I was adding this page to my personal website that calls the Spotify API and just shows a brief listening history for my account.

Personal site example

However, to retrieve this information from the Spotify API, it requires you to log in. I didn't want all this overhead to just show my recent songs, so I ended up setting up the authorization in this example repo and going through all this trouble to get a refresh token, which allows you to get access tokens without logging in. I wished I could've easily used a site like this one I've built, where you can just put in your credentials and get your refresh token. So I built it.

How to deploy to GH pages

change the homepage to your github pages url in package.json

change the 'base' in vite.config.js to your github repo name

yarn run gh-pages-deploy