Skip to content

Commit

Permalink
callback to heroku endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
helenkulka committed Mar 16, 2021
1 parent 0e7c8c7 commit 994fc3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions routes/callback.js
Expand Up @@ -15,7 +15,7 @@ var generateRandomString = function(length) {

var client_id = process.env.REACT_APP_CLIENT_ID;// Your client id
var client_secret = process.env.REACT_APP_CLIENT_SECRET;// Your secret
var redirect_uri = 'http://frankoceanmetric.com/callback';
var redirect_uri = 'http://spotify-taste-tester.herokuapp.com/callback';

router.get('/', function(req, res) {

Expand Down Expand Up @@ -68,7 +68,7 @@ router.get('/', function(req, res) {
});

// we can also pass the token to the browser to make requests from there
res.redirect('https://spotify-taste-tester.herokuapp.com/#' +
res.redirect('https://frankoceanmetric.com/#' +
querystring.stringify({
access_token: access_token,
refresh_token: refresh_token
Expand Down
2 changes: 1 addition & 1 deletion routes/login.js
Expand Up @@ -3,7 +3,7 @@ var querystring = require('querystring');
var router = express.Router();

var client_id = process.env.REACT_APP_CLIENT_ID; // Your client id
var redirect_uri = 'http://frankoceanmetric.com/callback';
var redirect_uri = 'http://spotify-taste-tester.herokuapp.com/callback';

var generateRandomString = function(length) {
var text = '';
Expand Down

0 comments on commit 994fc3d

Please sign in to comment.