Skip to content

Conversation

@markspolakovs
Copy link
Member

No description provided.

@markspolakovs markspolakovs requested review from Brookke, ColinRoitt and mstratford and removed request for Brookke May 18, 2020 11:37
})
}

async function savePlaylistToSpotify(thisEl, tracklistContainerEl, showName) {
Copy link
Member Author

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" +
Copy link
Member Author

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

@mstratford
Copy link
Member

Just testing this... At least on localhost I get a 404 to /_redirect after authing Spotify, is that expected?

@markspolakovs
Copy link
Member Author

@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") +
Copy link
Member Author

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

@mstratford
Copy link
Member

I guess I should look at this lol.

@Brookke Brookke removed their request for review May 26, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants