mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #232] "code" index not defined in callback.php? #164
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @amanuelanteneh on GitHub (Jun 6, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/232
I'm trying to follow the authorization code flow example from here
My auth.php is basically the same as the docs:
And my callback.php is:
But I keep getting this error:
Undefined index: code in {projectPath}\callback.php on line 12.I'm not sure why the code index seems to be null. I tried changing
$_GETto$_REQUESTlike another issue suggested but that yielded the same error.@amanuelanteneh commented on GitHub (Jun 6, 2021):
If anyone else is having this issue, for some reason when I include the extra "/" at the end of my redirect URI this error occurs. However when I omit the "/" and instead use:
http://localhost/callback.phpas the redirect URI the issue resolves itself. Also make sure to omit the "/" when you whitelist the URI on your apps dashboard as well!