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(auth): clear browser tab location before sending final success hub events during OAuth signIn #14188

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Samaritan1011001
Copy link
Member

Description of changes

This fixes an issue where we replace the tab location after sending the final hub events disallowing any important app state related actions to take place for sign in hub events (customOAuthState, signInWithRedirect and signIn). By replacing browser state, it marks the final step in the sign in process after which the hub events are dispatched.

Issue #, if available

#13530

Description of how you validated changes

Updated unit tests to verify.

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Member

@AllanZhengYP AllanZhengYP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for fixing it!

@HuiSF HuiSF requested a review from ashika112 as a code owner February 21, 2025 19:10
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.

3 participants