Skip to content

Commit ad74326

Browse files
committed
Add try/catch
1 parent 06e6a13 commit ad74326

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/auth/src/core/auth/auth_impl.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
227227

228228
// At this point in the flow, this is a redirect user. Run blocking
229229
// middleware callbacks before setting the user.
230-
await this._runBeforeStateCallbacks(storedUser);
230+
try {
231+
await this._runBeforeStateCallbacks(storedUser);
232+
} catch(e) {
233+
return;
234+
}
231235

232236
// If the redirect user's event ID matches the current user's event ID,
233237
// DO NOT reload the current user, otherwise they'll be cleared from storage.

0 commit comments

Comments
 (0)