We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a84011f commit 3c05dacCopy full SHA for 3c05dac
tools/spotify_music_quiz_cards.html
@@ -356,9 +356,10 @@
356
}
357
358
function refreshAuth() {
359
+ const clientId = localStorage.getItem('spotify_client_id');
360
localStorage.clear();
361
sessionStorage.clear();
- const clientId = localStorage.getItem('spotify_client_id');
362
+ localStorage.setItem('spotify_client_id', clientId);
363
const scope = 'streaming user-read-email user-read-private user-modify-playback-state playlist-read-private';
364
window.location.href = `https://accounts.spotify.com/authorize?client_id=${clientId}&response_type=token&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`;
365
0 commit comments