feat: add login schema
This commit is contained in:
parent
08bb5a1dc2
commit
8fde14446d
10
app/schemas/auth/login.ts
Normal file
10
app/schemas/auth/login.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
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>;
|
||||||
Loading…
x
Reference in New Issue
Block a user