Skip to content

Commit

Permalink
Fixing production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Chinem Kameya committed Apr 11, 2019
1 parent 1dacbc3 commit 20fe9bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const config = require('./config/keys');

const client_id = config.spotifyClientID; // Your client id
const client_secret = config.spotifyClientSecret; // Your secret
// const redirect_uri = 'https://quiet-castle-21882.herokuapp.com/api/callback'; // Your redirect uri
const redirect_uri = 'http://localhost:5000/api/callback'; // Your redirect uri
const redirect_uri = 'https://quiet-castle-21882.herokuapp.com/api/callback'; // Your redirect uri
// const redirect_uri = 'http://localhost:5000/api/callback'; // Your redirect uri
/**
* Generates a random string containing numbers and letters
* @param {number} length The length of the string
Expand Down Expand Up @@ -99,8 +99,8 @@ app.get('/api/callback', function (req, res) {
});

// we can also pass the token to the browser to make requests from there
res.redirect('http://localhost:3000/#' +
// res.redirect('https://quiet-castle-21882.herokuapp.com/#' +
// res.redirect('http://localhost:3000/#' +
res.redirect('https://quiet-castle-21882.herokuapp.com/#' +
querystring.stringify({
access_token: access_token,
refresh_token: refresh_token,
Expand Down

0 comments on commit 20fe9bc

Please sign in to comment.