Hello,
I have recently implemented the quickstart PHP laravel login guide for webapps. I successfully implemented the guide for generic user handling, however my app requires some custom user handling. I followed the remaining steps for custom user handling in the guide, but now I appear to be getting an invalid state
error that is thrown each time a user attempts a login. More specifically when the $service->getUser();
method is called from within the /auth0/login/src/controllers/Auth0Controller.php
file (line 35).
Iāve read through some other blog posts regarding this. I have identified that the states are mismatched from the /authorize
endpoint that is called at login, and the /callback
endpoint afterwards. I have uploaded some screenshots of what I see after I attempt a login, and my developer tools console.
It should also be noted that I am re-using accounts that I have registered in my auth0 tenant, and simply deleting them when I want to try a fresh login. I saw somewhere that may affect things? I have also been regularly clearing my browser cache on the browser I use to login, as well as clearing my PHP cache with the following commands:
php artisan config:clear
php artisan cache:clear
Any help is appreciated on this topic! Thank you.
Please include the following information in your post:
-
Which SDK this is regarding: e.g. auth0-php
-
SDK Version: e.g. 7.9.0
-
Platform Version: e.g. PHP 7.4.3, Laravel 8.48.0
-
Code Snippets/Error Messages/Supporting Details/Screenshots:
Is this a feature request or bug report? Bug?