From 9066537cf8c739c82417d1ae0d3752e952f9cbe5 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Fri, 15 May 2026 20:19:44 +0330 Subject: [PATCH] fix: remove login timeout handling from AuthBridge --- src/lib/auth-bridge.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib/auth-bridge.ts b/src/lib/auth-bridge.ts index 54061b1..a315b11 100644 --- a/src/lib/auth-bridge.ts +++ b/src/lib/auth-bridge.ts @@ -2,7 +2,6 @@ import { getClientCookie } from "./cookies"; const TOKEN_COOKIE_NAME = "HABIB_TOKEN"; const COINS_COOKIE_NAME = "HABIB_COINS"; -const LOGIN_TIMEOUT_MS = 30_000; function postFlutterMessage(payload: Record) { if (typeof window === "undefined") { @@ -136,14 +135,6 @@ class AuthBridge { return false; } - window.setTimeout(() => { - if (!this.token) { - console.warn("⚠️ Flutter login timeout"); - this.loginRequested = false; - this.resolvePending(null); - } - }, LOGIN_TIMEOUT_MS); - return true; }