From 900f16d2007aa600fc3a288ce1ea655364a364a9 Mon Sep 17 00:00:00 2001 From: Jules Rosser Date: Tue, 26 Aug 2025 14:14:17 -0700 Subject: [PATCH] fix bug in Android sign in flow due to multiple signInToOldDot calls --- src/libs/HybridApp.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/HybridApp.ts b/src/libs/HybridApp.ts index b65eb541b7e4..665e0a1beafb 100644 --- a/src/libs/HybridApp.ts +++ b/src/libs/HybridApp.ts @@ -88,6 +88,11 @@ function signInToOldDotAndChooseExperience(hybridApp: OnyxEntry, tryN return; } + // Skip if we're already in the signing in flow, preventing multiple calls to signInToOldDot + if (session?.autoAuthState === CONST.AUTO_AUTH_STATE.SIGNING_IN) { + return; + } + Log.info(`[HybridApp] Performing sign-in on OldDot side`); HybridAppModule.signInToOldDot({ autoGeneratedLogin: credentials.autoGeneratedLogin,