UNPKG

@proofgeist/kit

Version:

Create web application with the ProofKit stack

13 lines (11 loc) 300 B
import { z } from "zod"; export const signUpSchema = z .object({ email: z.string().email(), password: z.string(), passwordConfirm: z.string(), }) .refine((data) => data.password === data.passwordConfirm, { message: "Passwords don't match", path: ["passwordConfirm"], });