Skip to content
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: signout session already expired scenario #440

Merged

Conversation

shuowu
Copy link
Contributor

@shuowu shuowu commented Jul 31, 2020

Fixes:

  • by default to redirect to window.location.origin in signOut when users session already expired. This will fix an issue when user already in a secure route (in SPA, like /profile), signOut should redirect user to window.location.origin instead of reload the /profile route.

(Edit by @aarongranick-okta ): This logic only occurs if idToken is missing during signOut. User will be redirected to origin or postLogoutRedirectUri after the XHR signOut method is used. If the postLogoutRedirectUri matches the current URI, the page will be reloaded to match the logic of a full redirect.

CHANGELOG.md Outdated Show resolved Hide resolved
@aarongranick-okta aarongranick-okta force-pushed the sw-fix-signout-session-already-expired-scenario branch 2 times, most recently from eba5b29 to b735953 Compare August 7, 2020 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants