-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save a show's tracklist to Spotify #243
base: development
Are you sure you want to change the base?
Conversation
}) | ||
} | ||
|
||
async function savePlaylistToSpotify(thisEl, tracklistContainerEl, showName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using async functions => doesn't support IE11
const state = (Math.random() * 1e6).toString(10); | ||
const authWindow = window.open( | ||
"https://accounts.spotify.com/authorize?" + | ||
"client_id=59c103779bf341fb80f8ac527ea05808" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to become a config variable
Just testing this... At least on localhost I get a 404 to /_redirect after authing Spotify, is that expected? |
@mstratford That's expected, the JS should catch the redirect and close the popup. If it doesn't, now that's a bug. |
"https://accounts.spotify.com/authorize?" + | ||
"client_id=59c103779bf341fb80f8ac527ea05808" + | ||
"&response_type=token" + | ||
"&redirect_uri=" + encodeURIComponent("http://localhost:3000/_redirect") + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er, that shouldn't be localhost
I guess I should look at this lol. |
No description provided.