diff --git a/app.js b/app.js index 4cb22b7..434b9c0 100644 --- a/app.js +++ b/app.js @@ -91,16 +91,9 @@ app.get('/callback', function (req, res) { refresh_token = body.refresh_token; // we can also pass the token to the browser to make requests from there - res.redirect('/#' + - querystring.stringify({ - access_token: access_token, - refresh_token: refresh_token - })); + res.send('') } else { - res.redirect('/#' + - querystring.stringify({ - error: 'invalid_token' - })); + res.send('') } }); } diff --git a/public/index.html b/public/index.html index 7b02799..dcfc549 100644 --- a/public/index.html +++ b/public/index.html @@ -1,76 +1,47 @@ - + Spotify Duplicate Finder + -
-

Duplicates finder - - - Log in with Spotify - -

-
-
-
+
+ +
+
- - - - - - - - - + + +