From ccdcfb9fa1d2c035d2124c224c12374d6639a03c Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Tue, 19 Aug 2025 15:59:37 -0600 Subject: [PATCH] fix: improve error handling for login credentials in SupabaseAuthProvider --- src/auth/supabase.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/supabase.tsx b/src/auth/supabase.tsx index f2fb9b0..eec494b 100644 --- a/src/auth/supabase.tsx +++ b/src/auth/supabase.tsx @@ -52,7 +52,8 @@ export function SupabaseAuthProvider({ email, password, }) - if (error) throw error + if (error?.code === 'invalid_credentials') throw new Error('Credenciales inválidas') + else if (error) throw error } const logout = async () => {