mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
14 lines
334 B
TypeScript
14 lines
334 B
TypeScript
|
import { z } from "zod";
|
||
|
|
||
|
export const authSchema = z.object({
|
||
|
email: z
|
||
|
.string()
|
||
|
.nonempty("Email is required")
|
||
|
.email("Invalid email"),
|
||
|
password: z
|
||
|
.string()
|
||
|
.nonempty("Password is required")
|
||
|
.min(8, "Password must be at least 8 characters")
|
||
|
.max(32, "Password must be less than 32 characters"),
|
||
|
});
|