-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled Rejection (Error): Invalid State #68
Comments
This happens a lot in test scenarios, when you go to the Universal Login page (after calling Also, might happen if you're calling In any case, clearing cookies and trying again will most likely fix this issue during development time. In production, it's highly unlikely that users will hit this issue. |
I also see this issue, and it occurs for me using the email login (magic link login) when you start the login in one browser and finish it in another. For example, this happens when using iOS and the login process starts with a preferred browser like Chrome or Firefox but the login process finishes with the one iOS opens the link from, which will be the default (but not preferred) app, Safari. |
@techieshark This is a concern and I can understand why it's happening in your case. Since the state is cached in a cookie, the cookie won't be available when you start login using one browser but return to handle it in a different browser. |
Hey there, Clearing cookies had no effect on the problem. I was never clicking the browser back button. What seemed to trigger this issue was adding the following to the options parameter passed to Auth0Lock:
It may be worth noting that the redirect above is a localhost url. I solved the issue by taking that redirectUrl option out. Instead, I set a 'loggedIn' variable on state, and when true redirect normally, e.g. Hope that's helpful for someone. |
I am calling auth0 using the methods provided in react-auth0-wrapper.js. Sporadically I am receiving the following error when I try to login:
![IMG-9801](https://user-images.githubusercontent.com/13631199/61176341-3cc49a00-a58d-11e9-866c-e77ec2984193.JPG)
Documentation online says that it's possibly a caching problem, but the documentation is wordpress-plugin-specific. Anyone know what's going on here?
Thanks!
The text was updated successfully, but these errors were encountered: