https://github.com/tcorral/spotify-get-token
Server proxy to get the JWT token from Spotify
https://github.com/tcorral/spotify-get-token
Last synced: 11 months ago
JSON representation
Server proxy to get the JWT token from Spotify
- Host: GitHub
- URL: https://github.com/tcorral/spotify-get-token
- Owner: tcorral
- License: mit
- Created: 2018-12-04T23:10:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-04T23:22:39.000Z (over 7 years ago)
- Last Synced: 2025-03-22T18:02:54.842Z (about 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spotify-get-token
Server proxy to get the JWT token from Spotify
## Install
1. Fetch dependencies: ```npm install```
2. Run server: ```npm start```
3. Test server is running opening url ```http://localhost:3000``` in your browser.
## Usage
>In order to get a JWT token you need first to register you app in [Spotify Developers API website](https://developer.spotify.com/dashboard)
When you have registered your app you will get the 'Client ID' and a 'Client Secret', this app relays on them to get or renew the JWT token.
The url is ```http://localhost:3000/spotify/:client_id/:client_secret``` where you have to replace *:client_id* and *:client_secret* by the corresponding values.
> It can be used using a browser as well as using Ajax to reach the server.