-
Notifications
You must be signed in to change notification settings - Fork 100
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
Improve pollForExpiredAuth
and reauthenticate UX
#141
Conversation
/me
polling and reauthenticate UX
/me
polling and reauthenticate UXpollForExpiredAuth
and reauthenticate UX
Moving to draft. Want to make sure the changes in #144 are accounted for here. |
b65d891
to
c8348cc
Compare
web/app/services/session.ts
Outdated
}, | ||
true | ||
); | ||
// If the reauth message is shown, do nothing but restart the counter. |
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.
I'm thinking of a situation where a user has multiple Hermes tabs open and the session expires: can/should we continue polling to check to see if the me
API starts returning a 200 again? This way when the user re-auths in one tab, the flash message will go away in all the other tabs?
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.
Looks good! Thanks for addressing the Okta reauth use case!
* Improve polling and reauthentication * Cleanup * Grammar fix * Revert test changes * Update authenticated-user.ts * Update tests, types and documentation * Cleanup and documentation * Improve type accuracy * Separate Okta/Google poll handling * Copy tweaks * Remove unnecessary polling rules
Improves
pollForExpiredAuth
handling as well as the reauthentication UX:Plus some tests and cleanup.