Fix zod validation for login
This commit is contained in:
parent
4f0a600898
commit
be0a8df439
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
|
|
||||||
export const LoginSchema = z.object({
|
export const LoginSchema = z.object({
|
||||||
email: z.email(),
|
email: z.string().email(),
|
||||||
password: z.string().min(8),
|
password: z.string().min(8),
|
||||||
grant_type: z.literal('password')
|
grant_type: z.literal('password')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue