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

Unstable sign out #78

Open
kostia1st opened this issue Jan 21, 2021 · 5 comments
Open

Unstable sign out #78

kostia1st opened this issue Jan 21, 2021 · 5 comments

Comments

@kostia1st
Copy link

Hi,

We have an issue in the up to date version of @okta libs (4.1.0 for @okta/okta-react and 4.6.1 for @okta/okta-auth-js).
We use OKTA-hosted login page.

Repro steps:

  • open several tabs of the same SPA with a logged in user;
  • click Sign out in one of the tabs;
  • under the hood we call void oktaAuth.signOut(); and that's it;

Actual result:

  • you get redirected to the OKTA-hosted log in screen, but other tabs just reload (there's some action visible) but when you switch to them - you are still logged in, and you can use the creds stored (they are still in place in localStorage, things like okta-token-storage and others) and navigate the application;
    OR
  • you get redirected to the OKTA-hosted log in screen in the current and all other open tabs as well; (expected result)

The two above scenarios happen unstably one or another, like 50/50.

It seems like there's some kind of a race condition, or maybe some dependency on the random order of events emitted internally by OKTA on localStorage update.

@shuowu
Copy link
Contributor

shuowu commented Jan 26, 2021

@estorski Thanks for reporting the issue! I'll investigate on the issue, meanwhile, can I know the browser and the version that you can repro the issue?

Internal Ref: OKTA-364608

@kostia1st
Copy link
Author

Hey @shuowu

The browser is Chrome Version 87.0.4280.141 (Official Build) (64-bit)

@shuowu
Copy link
Contributor

shuowu commented Mar 8, 2021

@estorski I am not able to reproduce the issue with our react sample app. Please feel free to reach out to our support staff at [email protected] to collect reproduction details.

@LongJohnSilver1504
Copy link

Hello, @shuowu @estorski I have the same issue. libs (5.1.1 for @okta/okta-react and 4.9.0 for @okta/okta-auth-js).
Maybe we could create a shared codesandbox and try to reproduce it.

@shuowu
Copy link
Contributor

shuowu commented Oct 25, 2021

Relates to #148

Try workaround: #148 (comment)

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

No branches or pull requests

3 participants