Authentication Error: Invalid token 'state' does not match

I’ve been struggling to find the cause of this issue. When running the authentication locally, I have not issue with authentication. It comes right back. When deployed within a Docker container in AWS, on every first attempt to authentication I get Invalid_token ‘state’ does not match. When I re-attempt the login, it works fine.

What is causing this error? I am running with Auth0-js v8.12.2 using Hosted Login.

i’ve had a similar problem with a Vue.js app. Apparently inconsistently i am unable to log in and receive that same error: “Authentication Error: Invalid token ‘state’ does not match”.

Upon trying again it works fine.

Hi,

I have the same problem here. Does anybody has a solution?

Hi

Were you able to resolve the issue? I’ve been struggling with it for a while now too.

Hey there!

Sorry for such a delayed response! We’re doing our best in providing you with the best developer support experience out there but sometimes our bandwidth is just not enough for all the questions coming in. Sorry for the inconvenience!

Can you let us know if you still require further assistance from us?