From 27695fe46baa65979a9cce4e4117d2e534472807 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 02:52:14 +0000 Subject: [PATCH] completionId: cgen-a24837f6b41847acab05e6def167c408 cgen-a24837f6b41847acab05e6def167c408 --- client/contexts/AuthContext.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 75667d3b..3876b922 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -168,12 +168,13 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ let sessionRestored = false; // Add timeout to ensure loading doesn't get stuck + // Increased from 3s to 5s to allow more time for session restoration after OAuth const loadingTimeout = setTimeout(() => { console.log("Auth loading timeout - forcing loading to false"); if (!sessionRestored) { setLoading(false); } - }, 3000); + }, 5000); if (!storageClearedRef.current && typeof window !== "undefined") { try {