Auth0 Home Blog Docs

Invalid token - `state` does not match


#1

I am actually using the angular2+ sample application only from

Authentication works fine with one test account but throws an error “Invalid token - state does not match” for other.

state is being passed correctly but what comes back from auth0 in callback is different compare to what is been stored in localStorage.

No code changes, Only difference is other account users “google login” and if that is the cause I am not sure how to fix it ?


#3

:wave: @chintandbhatt Were you able to solve your issue?

Have you setup Google to use your own keys instead of the built-in developer keys? If not, can you try setting these and see how that works? If you keep getting the wrong state after that, can you record a .HAR file for a login attempt?


#4