Spotify Personal Auth
A Spotify authorization code flow implementation for local personal use.
Install
Install with npm:
$ npm i spotify-personal-auth --save
Usage
const auth = const SpotifyWebApi = // Configure moduleauth const api = /* Get token promise, the token will refresh if this is called when it has expired, * But you can get the refresh token if you would rather handle it * It is resolve as an array containing the token and refresh as shown below */auth
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running Tests
Install dev dependencies:
$ npm i -d && npm test
Author
Tomer Aberbach
License
Copyright © 2019 Tomer Aberbach Released under the MIT license.