We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a125713 commit d375e1dCopy full SHA for d375e1d
packages/auth/src/platform_browser/strategies/redirect.ts
@@ -91,6 +91,8 @@ export async function _signInWithRedirect(
91
): Promise<void | never> {
92
const authInternal = _castAuth(auth);
93
_assertInstanceOf(auth, provider, FederatedAuthProvider);
94
+ // Wait for auth initialization to complete, this will process pending redirects and clear session storage.
95
+ await authInternal._initializationPromise;
96
const resolverInternal = _withDefaultResolver(authInternal, resolver);
97
await _setPendingRedirectStatus(resolverInternal, authInternal);
98
0 commit comments