refactor: /api/login route

This commit is contained in:
2026-01-20 10:37:29 -05:00
parent e383255e73
commit 9d99770b38
5 changed files with 37 additions and 17 deletions

View File

@@ -0,0 +1,8 @@
import z from "zod";
export const authLoginFormSchema = z.object({
username: z.email("Courriel invalide"),
password: z.string("Veuillez saisir votre mot de passe"),
});
export type AuthLoginForm = z.infer<typeof authLoginFormSchema>;