0d7878f84f
- Rename secret_key to client_secret - Fetch values from new fields - Authorization Code: Exchange code by token sending id and secret in body instead of Base64 header
14 lines
464 B
JavaScript
14 lines
464 B
JavaScript
/**
|
|
* This is an example of a basic node.js script that performs
|
|
* the Implicit Grant oAuth2 flow to authenticate against
|
|
* the Spotify Accounts.
|
|
*
|
|
* For more information, read
|
|
* https://developer.spotify.com/spotify-web-api/authorization-guide/#implicit_grant_flow
|
|
*/
|
|
|
|
var express = require('express'); // Express web server framework
|
|
var app = express();
|
|
app.use(express.static(__dirname + '/public'));
|
|
console.log('Listening on 8888');
|
|
app.listen(8888);
|