-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix crash when multiple tabs open and logging out in one of them #191
Comments
Those errors only happen when we log out manually, correct? If so, that bug is an acceptable trade-off for now. |
Yep. Reproduction:
|
Merged now |
Tried adding a .catch for the error and that stops the instant crashing but instead makes the user crash when they try to perform something that requires auth, which is probably worse. |
Some clues in this documentation issue but even they seem confused IdentityModel/oidc-client-js#339
|
oh and fwiw I realized that the "crash" in the title here was only in dev, it was an uncaught promise and that I guess crashes the dev react renderer but not in prod. Either way it's getting caught now. |
Related links
IdentityModel/oidc-client-js#49
IdentityModel/oidc-client-js#168
IdentityModel/oidc-client-js#830
#162
Doing this IdentityModel/oidc-client-js#830 (comment) (note it's supposed to be signinSilent not signInSilent) right after setting up our userManager at first seemed to have fixed the issue, but then made me run into errors including crashing the page with "Unhandled Rejection (Error): invalid_grant" (thrown by oidc-client).
The text was updated successfully, but these errors were encountered: