Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ app.get('/callback', function(req, res) {
grant_type: 'authorization_code'
},
headers: {
'Authorization': 'Basic ' + (new Buffer(
'Authorization': 'Basic ' + (Buffer.from(
process.env.SPOTIFY_CLIENT_ID + ':' + process.env.SPOTIFY_CLIENT_SECRET
).toString('base64'))
},
Expand All @@ -43,4 +43,4 @@ app.get('/callback', function(req, res) {

let port = process.env.PORT || 8888
console.log(`Listening on port ${port}. Go /login to initiate authentication flow.`)
app.listen(port)
app.listen(port)