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: only register auth urlListener from InternalAuth instance #11810

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

erinleigh90
Copy link
Contributor

Description of changes

Prevents duplication of OAuth token callback due to urlListener registered in Auth instance and InternalAuth instance. Added a check to only register if moduleName is InternalAuth.

Issue #, if available

#11808

Description of how you validated changes

Tested using yarn linking in a sample app

Checklist

  • PR description included
  • yarn test passes

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

@erinleigh90 erinleigh90 requested a review from a team as a code owner August 16, 2023 18:54
@erinleigh90 erinleigh90 changed the title HOTFIX: only register auth urlListener from InternalAuth instance fix: only register auth urlListener from InternalAuth instance Aug 16, 2023
Copy link
Contributor

@jimblanc jimblanc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@israx israx left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@kvramyasri7 kvramyasri7 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix Erin. LGTM.

@erinleigh90 erinleigh90 merged commit bee9c8e into aws-amplify:main Aug 16, 2023
31 checks passed
@erinleigh90 erinleigh90 deleted the auth-url-listener-hot-fix branch August 16, 2023 19:11
kvramyasri7 pushed a commit to kvramyasri7/amplify-js that referenced this pull request Aug 19, 2023
stocaaro added a commit that referenced this pull request Aug 22, 2023
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.

None yet

5 participants