The following is a list of issues you might see when using the Auth0 PHP library and how you might troubleshoot these issues. I’m getting an “Invalid State” exception when trying to log in. State validation was added in 5.1.0 for improved security. By default, this uses session storage and will happen automatically if you are using a combination ofDocumentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Auth0::login() and any method which calls Auth0::exchange() in your callback.
If your users encounter this error:- Ensure your application is not accidentally invoking Auth0::login() more than once, which could invalidate the state stored on the end user’s device.- The end user is using a modern browser on their device and not blocking cookies.
I am getting curl error 60: SSL certificate problem: self-signed certificate in certificate chain on Windows
This is a common issue with the latest PHP versions under Windows OS (it is related to an incompatibility between Windows and OpenSSL CA’s database).
- Download this CA database
https://curl.haxx.se/ca/cacert.pemtoc:/cacert.pem. - Edit your php.ini and add
openssl.cafile=c:/cacert.pem. (It should point to the file you downloaded.)