UNPKG
@proofkit/cli
Version:
beta (2.0.0-beta.9)
latest (1.1.8)
2.0.0-beta.9
2.0.0-beta.6
2.0.0-beta.5
2.0.0-beta.4
1.2.0-beta.2
1.2.0-beta.1
1.2.0-beta.0
1.1.8
1.1.6
1.1.5
1.0.0
1.0.0-beta.0
Create web application with the ProofKit stack
github.com/proofgeist/proofkit
proofgeist/proofkit
@proofkit/cli
/
template
/
extras
/
fmaddon-auth
/
app
/
auth
/
signup
/
schema.ts
13 lines
(11 loc)
•
311 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import { z }
from
"zod/v4"
; export
const
signupSchema = z .
object
({ email: z.
string
().email(), password: z.
string
().min(
8
), confirmPassword: z.
string
(), }) .refine((data) => data.password === data.confirmPassword, { path: [
"confirmPassword"
], message:
"Passwords do not match"
, });