From 16aba004b380561fcc7a41d3015c0b2141417181 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 02:45:51 +0000 Subject: [PATCH] Ensure signIn return type remains void cgen-fe34c29bb9474293a8227908773ed218 --- client/contexts/AuthContext.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 583df52d..16560d11 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -353,22 +353,18 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ throw new Error("Please provide both email and password."); } - const { data, error } = await supabase.auth.signInWithPassword({ + const { error } = await supabase.auth.signInWithPassword({ email, password, }); - // Prefer explicit error from Supabase if present if (error) throw error; - // If signIn succeeded but no session info returned, attempt to refresh try { await supabase.auth.getSession(); } catch (e) { // ignore } - - return data; } catch (error: any) { console.error("SignIn error details:", error);