Password = Comfirm password validator
I may be stupid, but I am just learning arktype and was hoping to implement something like a zod refine.
Is this possible in arktype?
Is this possible in arktype?
const passwordForm = z
.object({
password: z.string(),
confirm: z.string(),
})
.refine((data) => data.password === data.confirm, {
message: "Passwords don't match",
path: ["confirm"], // path of error
});