feat: add login schema

This commit is contained in:
rajun 2026-10-27 16:28:56 +05:30
parent 08bb5a1dc2
commit 8fde14446d

10
app/schemas/auth/login.ts Normal file
View File

@ -0,0 +1,10 @@
import { z } from 'zod';
export const loginSchema = z.object({
email: z.string().trim().min(1, 'Enter your email address.').pipe(z.email('That doesn’t look like an email address.')),
password: z.string().min(1, 'Enter your password.'),
// Off: the session ends when the browser closes
remember: z.boolean(),
});
export type LoginValues = z.infer<typeof loginSchema>;