ar-test/app/schemas/auth/login.ts
2026-10-27 16:28:56 +05:30

11 lines
387 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>;