Invalid state when using Auth0.js and Auth0 PHP SDK

We are using the Auth0.js for custom login experience on self-hosted website and the PHP SDK for handling callback on the backend. I am able to login and this is visible in the logs on Auth0 but still get an “invalid state” error when exchanging for user credentials. Any help will be appreciated.

Hi @eliasauth0,

Welcome to the Auth0 Community!

Can you please elaborate on your setup? Code snippets can help clarify what your application(s) are doing.

Thank you!