Skip to content

Commit

Permalink
fix: avoid federated signin redirect loop (#11847)
Browse files Browse the repository at this point in the history
fix: urlListener on Auth instance instead of InternalAuth
  • Loading branch information
erinleigh90 authored Aug 21, 2023
1 parent 471cf2a commit 47d38f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/internals/InternalAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class InternalAuthClass {
// See https://github.com/aws-amplify/amplify-js/issues/4388
const usedResponseUrls = {};
// Only register urlListener once
if (this.getModuleName() === 'InternalAuth') {
if (this.getModuleName() === 'Auth') {
urlListener(({ url }) => {
if (usedResponseUrls[url]) {
return;
Expand Down

0 comments on commit 47d38f4

Please sign in to comment.