Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alecchendev/spotify-refresh-token
- Owner: alecchendev
- Created: 2021-03-23T01:03:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T00:02:02.000Z (about 1 year ago)
- Last Synced: 2024-08-01T02:33:23.357Z (6 months ago)
- Topics: react, spotify, spotify-api, tailwind
- Language: JavaScript
- Homepage: https://alecchendev.github.io/spotify-refresh-token/
- Size: 959 KB
- Stars: 143
- Watchers: 5
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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