Skip to content

Commit

Permalink
fix(auth): signInWithRedirect urlListner attaches for non-browser env (
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF authored Sep 14, 2023
2 parents 5c781a7 + 9f12035 commit bd6b4a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
assertOAuthConfig,
assertTokenProviderConfig,
getAmplifyUserAgent,
isBrowser,
urlSafeEncode,
USER_AGENT_HEADER,
} from '@aws-amplify/core/internals/utils';
Expand Down Expand Up @@ -391,7 +392,7 @@ function urlListener() {
});
}

urlListener();
isBrowser() && urlListener();

// This has a reference for listeners that requires to be notified, TokenOrchestrator use this for load tokens
let resolveInflightPromise = () => {};
Expand Down

0 comments on commit bd6b4a9

Please sign in to comment.