spotify-auth-express
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "spotify-auth-express", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ | ||
Instantiate and initialize a new Express API: | ||
You can either initialize a new Express API: | ||
@@ -17,3 +17,3 @@ ```js | ||
Extend an existing Express API: | ||
... or extend an existing one: | ||
```js | ||
@@ -30,17 +30,15 @@ const express = require('express') | ||
}) | ||
app.listen(...) | ||
``` | ||
And you get... | ||
In return, you get: | ||
```js | ||
app.listen(...) | ||
app.get('/spotify/auth', (req, res) => { | ||
... | ||
res.redirect('YOUR_REDIRECT_URL') | ||
}) | ||
/** | ||
app.get('/spotify/auth', (req, res) => { | ||
... | ||
res.redirect('YOUR_REDIRECT_URL') | ||
}) | ||
*/ | ||
app.get('/spotify/callback/' ...) | ||
app.get('/spotify/refresh/' ...) | ||
``` | ||
@@ -47,0 +45,0 @@ |
9376
60