Skip to content

Commit 3c05dac

Browse files
committed
- try to debug auth problem
1 parent a84011f commit 3c05dac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/spotify_music_quiz_cards.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,10 @@
356356
}
357357

358358
function refreshAuth() {
359+
const clientId = localStorage.getItem('spotify_client_id');
359360
localStorage.clear();
360361
sessionStorage.clear();
361-
const clientId = localStorage.getItem('spotify_client_id');
362+
localStorage.setItem('spotify_client_id', clientId);
362363
const scope = 'streaming user-read-email user-read-private user-modify-playback-state playlist-read-private';
363364
window.location.href = `https://accounts.spotify.com/authorize?client_id=${clientId}&response_type=token&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`;
364365
}

0 commit comments

Comments
 (0)