-
Notifications
You must be signed in to change notification settings - Fork 22
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
Reset app auth state if Auth0 session has expired #1398
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the changes here look right from what I can tell but I see that some tests in CI are failing and I don't see any test coverage for this (is that normal for the web project?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Though should we also actually clear that state when we detect this issue? I guess I'm thinking that if someone navigated away from the log-in page, then they'd still be in this inconsistent state where the app thinks they're logged in but their credentials have expired.
Regrettably, it's normal for the web project to have flaky failures with the end-to-end browser tests. Normally I just restart it until it finally succeeds. |
Unfortunately, this failure seems to do with a deprecated artifact in our build system. I just haven’t had time to look further into this. I’m away this weekend so i can’t work on it. Anyhow, i suppose this could be safely merged in if we want to, but i don’t mind waiting until we get to the bottom of this , either
|
Is there another state I’m missing? The code sets the authState to null prior to the redirect |
Thanks for the review @richardxia and @katerina-kossler ! Sorry for my late replies here |
Wow, sorry, I don't know how I missed that. My brain managed to completely not see that line in between the |
I am going to go ahead and merge this in as the test failure is unrelated. Thanks all! |
refs #1391