SDK: auth0-php
SDK Version: ^8.0
Platform Version: PHP 8.0
I was going along the quick start for setting up the SDK in order to apply a Discord authenticator to my PHP site. For now, though, I was simply setting up an empty file in accordance with the guide.
I do get the authentication through, but once I return with the callback I do get the following error message:
Fatal error: Uncaught Auth0\SDK\Exception\StateException: Missing code in .../vendor/auth0/auth0-php/src/Exception/StateException.php:30
Stack trace: #0 ../vendor/auth0/auth0-php/src/Auth0.php(317): Auth0\SDK\Exception\StateException::missingCode() #1 ../user2.php(69): Auth0\SDK\Auth0->exchange('http://127.0.0....')
Still, I followed the guide from start to finish. I even copy-pasted the code to make sure I didnât make any typos.
- Code Snippets/Error Messages/Supporting Details/Screenshots:
As far as I could see, the issue comes in my ROUTE_URL_CALLBACK that I defined earlier.
I checked the data and naming but all seem to be correct.