[GH-ISSUE #195] "invalid authorization code" #132

Closed
opened 2026-02-27 19:26:14 +03:00 by kerem · 1 comment
Owner

Originally created by @themcgarvie on GitHub (Jun 19, 2020).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/195

Hello.... No matter what I do I keep getting "invalid authorization code" when returning to callback url.

Any hints on how to authenticate would be welcome :/

I am using the 'demo code', I get redirected to spotify login but when I get redirected back the above occurs.

Originally created by @themcgarvie on GitHub (Jun 19, 2020). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/195 Hello.... No matter what I do I keep getting "invalid authorization code" when returning to callback url. Any hints on how to authenticate would be welcome :/ I am using the 'demo code', I get redirected to spotify login but when I get redirected back the above occurs.
kerem closed this issue 2026-02-27 19:26:14 +03:00
Author
Owner

@jwilsson commented on GitHub (Jun 20, 2020):

Hey!
Probably a stupid and obvious question, but I gotta ask it anyway 😄 are you removing the code query string between tries? It's only valid once and will give you that error otherwise.

<!-- gh-comment-id:646964707 --> @jwilsson commented on GitHub (Jun 20, 2020): Hey! Probably a stupid and obvious question, but I gotta ask it anyway 😄 are you removing the `code` query string between tries? It's only valid once and will give you that error otherwise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#132
No description provided.