Interactive command line tool to easily get refresh tokens for Spotify API
Table of Contents generated with DocToc
While building applications with the Spotify API, the authorization guide is a good but very long ressource to grasp. It took me some time to understand that, for my usecase (automating the creation of playlists), I needed to obtain refresh tokens to then be able to ask for tokens on the Spotify API at any time.
Default tokens on the Spotify API have an expiration time, to be able to get new tokens, you need a refresh token.
But to obtain a refresh token, the process is a bit tedious, so if as me you just want to obtain one and then save it somewhere in and environement variable, use tokenify
!
npm install -g tokenify
# yarn global add tokenify
tokenify
npm run release