mirror of
https://github.com/BradNut/AdelieStack
synced 2025-09-08 17:40:20 +00:00
8 lines
333 B
TypeScript
8 lines
333 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const signinDto = z.object({
|
|
identifier: 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 SignInDto = z.infer<typeof signinDto>;
|