okta / okta-react

Okta OIDC SDK for React
https://github.com/okta/okta-react
Other
113 stars 78 forks source link

Unstable sign out #78

Open kostia1st opened 3 years ago

kostia1st commented 3 years ago

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:

Actual 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 commented 3 years ago

@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 commented 3 years ago

Hey @shuowu

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

shuowu commented 3 years ago

@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 developers@okta.com to collect reproduction details.

LongJohnSilver1504 commented 3 years ago

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 commented 2 years ago

Relates to #148

Try workaround: https://github.com/okta/okta-react/issues/148#issuecomment-951019063