spotify-api-token-manager
Manage your access tokens easily
About this project
This project helps you to manage your spotify access tokens. this automates the process of refreshing tokens and updating them :3! i love you tokio <3
How to use this library
setup in the spotify dashboard your application, there are several tutorials online how to do that
what matters for us specifically are a few things
- client id
- client secret
- redirect url
please note that the redirect url should always end with /callback
here is a quick example usage
use ;
use TcpListener;
use signal;
async
note that the url of the listener always needs to be the same url you defined earlier in the spotify developer dashboard.
after you have done it, open the listener url in your browser along with /login to authorize your account
example of the url could be http://127.0.0.1:8080/login
also important
please note that this library will create a folder in your home dir called "stm_data" which stands simply for spotify token manager data :D so make sure that you dont already have a folder which is called like that