fix: erreur explicite lors de l'échec de connexion

This commit is contained in:
2026-01-03 12:08:58 +04:00
parent 1cedf24a65
commit 7c41beb992
2 changed files with 3 additions and 5 deletions
-4
View File
@@ -22,10 +22,6 @@ export const options = {
const user = await res.json()
if (!res.ok && user) {
throw new Error('E-mail ou mot de passe incorrect')
}
if (res.ok && user) {
return user
}