fix: improve error handling for login credentials in SupabaseAuthProvider
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user