fix: improve error handling for login credentials in SupabaseAuthProvider

This commit is contained in:
2025-08-19 15:59:37 -06:00
parent a52259451c
commit ccdcfb9fa1

View File

@@ -52,7 +52,8 @@ export function SupabaseAuthProvider({
email, email,
password, password,
}) })
if (error) throw error if (error?.code === 'invalid_credentials') throw new Error('Credenciales inválidas')
else if (error) throw error
} }
const logout = async () => { const logout = async () => {