Skip to content

fix[okta-react]: add missing await on restoreOriginalUri#283

Closed
nhardy wants to merge 1 commit into
okta:masterfrom
nhardy:patch-3
Closed

fix[okta-react]: add missing await on restoreOriginalUri#283
nhardy wants to merge 1 commit into
okta:masterfrom
nhardy:patch-3

Conversation

@nhardy
Copy link
Copy Markdown

@nhardy nhardy commented May 29, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Currently when providing a restoreOriginalUri function that returns a Promise to the <Security /> component, this promise is not awaited on in oktaAuth.handleLoginRedirect(). This means that relying on the resolution of the okta.handleLoginRedirect() promise does not reliably indicate that the redirect has completed.

Issue Number: N/A

What is the new behavior?

If restoreOriginalUri returns a promise, it will be awaited when calling oktaAuth.handleLoginRedirect().

Does this PR introduce a breaking change?

  • No

Other information

Reviewers

Fixes an issue where restoreOriginalUri returns a Promise that is not awaited on by oktaAuth.handleLoginRedirect()
@nhardy
Copy link
Copy Markdown
Author

nhardy commented Jun 3, 2024

Resolved in #284

@nhardy nhardy closed this Jun 3, 2024
@nhardy nhardy deleted the patch-3 branch June 3, 2024 01:28
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.

1 participant