> Generate a Spotify `refresh_token` right from terminal
npm install spotify-rtoken-cli> Generate a Spotify refresh_token right from terminal
> In step 5, you will be redirected to your browser for confirming permissions. Then you will be redirected to the specified redirect_uri with the code. Copy that code, paste in the terminal.
> !partial_blur
1. Easy to use. You just need to call the CLI and follow the prompt
2. Does not store any credentials locally
3. Directly copies the refresh_token to clipboard :sparkles:
4. You are aware of every step that is being executed
5. No need to define scopes, unless you want to manually add scopes. Recommended option is read-only scopes.
Below are the Spotify credentials you will need from your Spotify app inorder to generate a refresh_token with this CLI app:
1. client_id
2. client_secret
3. redirect_uri
``sh`
$ npm install --global spotify-rtoken-cli
`sh
$ spotify-rtoken --help
Usage
$ spotify-rtoken
Options
--no-mask Do not hide/mask credentials ie, client_id, client_secret, code.
Examples
$ spotify-rtoken
$ spotify-rtoken --no-mask
``
- spotify-mini - Simple Spotify client for Nodejs exposing some useful methods
MIT License © 2022 Rocktim Saikia