fariasmateuss / spotify-refresh-token

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

Home Page:https://alecchendev.github.io/spotify-refresh-token/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 deploy

About

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

https://alecchendev.github.io/spotify-refresh-token/


Languages

Language:JavaScript 93.4%Language:HTML 4.4%Language:CSS 2.3%