State exception during exchange after successful login

Hi @chris.howell

Thank you for posting your question on the Auth0 Community!

I am sorry about the delayed response to your inquiry.

Please take a look at this community post which appears to encounter the same State Exception error. The solution mentions that:

You seem to be requesting your /login route from 127.0.0.1, but your app is configured to return to localhost after authentication flow. These are different domains, and the cookie wouldn’t be shared between those. I was able to reproduce the invalid state exception when doing things that way, but that is to be expected, as the cookie shouldn’t be shared cross-domain. Try starting your login from localhost instead of 127.0.0.1 and see if it works

Let me know if that helped you solve the issue, if you have found one already or if you have any other questions regarding the matter by leaving a reply on the post!

Kind Regards,
Nik