okta/okta-react

oktaAuth.signOut promise never resolves

kellengreen opened this issue · 4 comments

The oktaAuth.signOut promise never resolves after visiting a broken <LoginCallback> view.

I'm submitting a:

  • Bug report
  • Feature request
  • Other (Describe below)

Current behavior

oktaAuth.signOut() never resolves.

Expected behavior

oktaAuth.signOut() should either resolve or reject.

Minimal reproduction of the problem with instructions

Demo and steps to reproduce are located here.

Environment

    "@okta/okta-auth-js": "5.8.0",
    "@okta/okta-react": "6.3.0",
    "react": "^17.0.2",

Thanks for submitting this issue.
Internal ref: OKTA-441940

@kellengreen
I've tried to reproduce this issue with your demo app
I found that this bug was present in okta-auth-js 5.5.0
But it was fixed in version 5.6.0 with this PR
I noticed that you used version 5.5.0 first in demo and then upgraded to 5.8.0 in this commit
Can you please confirm that promise oktaAuth.signOut() can be resolved after upgrade?

Sure thanks for looking. I'll take a peak on Monday.

Yep it looks like 174 was fixed in 5.6.0+ 👍.

I retested 173 with latest versions and I'm still able to reproduce.