From c5f6952b19a997ad175a669f432a3e9cf663a376 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 03:54:56 +0000 Subject: [PATCH] completionId: cgen-8fad880b65dd4d46bff93913659dcc24 cgen-8fad880b65dd4d46bff93913659dcc24 --- client/contexts/AuthContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 0c378aa3..85c41ead 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -320,10 +320,10 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ userId: string, ): Promise => { try { - // Fetch user profile with a 3-second timeout to prevent hanging + // Fetch user profile with a 10-second timeout to prevent hanging const profilePromise = aethexUserService.getCurrentUser(); const timeoutPromise = new Promise((resolve) => - setTimeout(() => resolve(null), 3000), + setTimeout(() => resolve(null), 10000), ); const userProfile = await Promise.race([profilePromise, timeoutPromise]);