mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
19 lines
488 B
TypeScript
19 lines
488 B
TypeScript
import { z } from 'zod';
|
|
|
|
const LoginValidationSchema = z.object({
|
|
username: z
|
|
.string({
|
|
required_error: 'Username is required.',
|
|
invalid_type_error: 'Username must be a string.',
|
|
})
|
|
.min(1, { message: 'Username is required.' }),
|
|
password: z
|
|
.string({
|
|
required_error: 'Password is required.',
|
|
invalid_type_error: 'Password must be a string.',
|
|
})
|
|
.min(1, { message: 'Password is required.' }),
|
|
});
|
|
|
|
export default LoginValidationSchema;
|