Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

A simple site for developers to easily get their own refresh token for Spotify's API.
https://github.com/alecchendev/spotify-refresh-token

react spotify spotify-api tailwind

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

#### :star: 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](readme/personal-site.png)

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](https://github.com/spotify/web-api-auth-examples) 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