Skip to content

Commit

Permalink
revert https
Browse files Browse the repository at this point in the history
  • Loading branch information
helenkulka committed Mar 16, 2021
1 parent 7a054a3 commit a1f6103
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion client/src/components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class Home extends Component {
<div className="row">
<div className="col-md text-center">
<p id="subtitle"> a website to compare your music taste to <br></br>Frank Ocean's playlists Blonded</p>
<a href="https://spotify-taste-tester.herokuapp.com/login" className="btn" id="login-btn">
<a href="http://spotify-taste-tester.herokuapp.com/login" className="btn" id="login-btn">
<span className="iconify" style={{margin:5}} data-icon="entypo-social:spotify-with-circle" data-inline="false" />
Log in with Spotify
</a>
Expand Down
2 changes: 1 addition & 1 deletion routes/callback.js
Original file line number Diff line number Diff line change
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 = 'https://spotify-taste-tester.herokuapp.com/callback';
var redirect_uri = 'http://spotify-taste-tester.herokuapp.com/callback';

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

Expand Down
3 changes: 1 addition & 2 deletions routes/login.js
Original file line number Diff line number Diff line change
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 = 'https://spotify-taste-tester.herokuapp.com/callback';
var redirect_uri = 'http://spotify-taste-tester.herokuapp.com/callback';

var generateRandomString = function(length) {
var text = '';
Expand All @@ -16,7 +16,6 @@ var generateRandomString = function(length) {
};

router.get('/', function(req, res) {
console.log("client id in login:", process.env);
var state = generateRandomString(16);
var stateKey = 'spotify_auth_state';
res.cookie(stateKey, state);
Expand Down

0 comments on commit a1f6103

Please sign in to comment.