ShyykoSerhiy / vscode-spotify

Use Spotify inside vscode(on Mac, Windows, and Linux).
https://marketplace.visualstudio.com/items/shyykoserhiy.vscode-spotify
MIT License
606 stars 74 forks source link

Authentication fails on 3.0.0 #51

Open acid-chicken opened 5 years ago

acid-chicken commented 5 years ago

Steps to reproduce

  1. Push Spotify Sign In button.
  2. Firefox opens https://vscode-spotify-auth.azurewebsites.net/?message=You%20can%20now%20close%20this%20tab.
  3. vscode-spotify says Failed to retrieve access token : "state_mismatch"

image

https://github.com/ShyykoSerhiy/vscode-spotify/blob/e753c11bb0261d84a1455f1984744f7d39e6e37d/src/actions/actions.ts#L234

Environments

vscode-spotify version
3.0.0
vscode version
1.27.2
os
Linux 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux
levrik commented 5 years ago

@acid-chicken Maybe try to remove access for vscode-spotify and try the whole process again. You can remove access here: https://www.spotify.com/de/account/apps/

acid-chicken commented 5 years ago

@levrik Hmm, I tried them but the authentication still fails.

ShyykoSerhiy commented 5 years ago

Hi @acid-chicken , do you have cookies enabled in firefox?

ShyykoSerhiy commented 5 years ago

You can get this error if cookies are disabled.

ShyykoSerhiy commented 5 years ago

Theoretically clearing cookies might help too.

acid-chicken commented 5 years ago

@ShyykoSerhiy Yes, the cookie is enabled in my Firefox, and I retried after cleaning cookies, but it still fails.

Funeoz commented 5 years ago

Same here. Opened with Firefox and getting the same error.

Funeoz commented 5 years ago

Found something that can help. I disabled and enabled the extension. Then I started Spotify app and launched a music. After that, I can play/stop music, play previous/next track ... But the Spotify tab in vscode doesn't show anything because the error is still here.