spotify-auth-express
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "spotify-auth-express", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# spotify-auth-express | ||
> Plug-and-play Spotify OAUTH flow for Express. | ||
### Plug-and-play Spotify OAUTH flow for Express. | ||
> Instantiate and initialize a new Express API. | ||
```js | ||
// Instantiate and initialize a new Express API. | ||
const spotify = require('spotify-auth-express') | ||
@@ -13,6 +14,6 @@ | ||
}) | ||
``` | ||
... | ||
// Extend an existing Express API. | ||
> Extend an existing Express API. | ||
```js | ||
const express = require('express') | ||
@@ -32,3 +33,3 @@ const spotify = require('spotify-auth-express') | ||
/** | ||
* | ||
app.get('/spotify/auth', (req, res) => { | ||
@@ -38,7 +39,7 @@ ... | ||
}) | ||
*/ | ||
*/ | ||
``` | ||
### Configuration | ||
#### Configuration | ||
@@ -56,3 +57,3 @@ The following optional keys can be passed in addition to your application & client IDs: | ||
* gzip | `Boolean` | default: true` | ||
* redirect | `String` | default: \``http://localhost:${config.port || DEFAUL_PORT}${config.root || DEFAULT_ROOT}${config.redirect || DEFAULT_REDIRECT}` | ||
* redirect | `String` | default: \``http://localhost:${config.port || DEFAUL_PORT}${config.root || DEFAULT_ROOT}${config.redirect || DEFAULT_REDIRECT}`\` | ||
* accessTokenKey | `String` | default: `'SPOTIFY_ACCESS_TOKEN'`, | ||
@@ -59,0 +60,0 @@ * refreshTokenKey | `String` | default: `'SPOTIFY_REFRESH_TOKEN'`, |
9294
58