mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
12 lines
No EOL
364 B
TypeScript
12 lines
No EOL
364 B
TypeScript
import { z } from "zod";
|
|
|
|
export const signinUsernameDto = z.object({
|
|
username: z
|
|
.string()
|
|
.trim()
|
|
.min(3, { message: 'Must be at least 3 characters' })
|
|
.max(50, { message: 'Must be less than 50 characters' }),
|
|
password: z.string({ required_error: 'Password is required' }).trim(),
|
|
});
|
|
|
|
export type SigninUsernameDto = z.infer<typeof signinUsernameDto>; |