refactor: update Zod schemas to v4

This commit is contained in:
2026-05-11 18:59:30 +02:00
parent f5c759fc3a
commit fd18692110
8 changed files with 60 additions and 25 deletions
+6 -2
View File
@@ -3,11 +3,15 @@ import { z } from "zod"
export const signInSchema = z.object({
username: z
.string()
.min(1, { message: "Invalid username" })
.min(1, {
error: "Invalid username"
})
.nonempty("Username is required"),
password: z
.string()
.min(3, { message: "Password is too short" })
.min(3, {
error: "Password is too short"
})
.nonempty("Password is required"),
})