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
/
src
/
app
/
next-auth
/
signup
/
validation.ts
13 lines
(11 loc)
•
303 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
(), passwordConfirm: z.
string
(), }) .refine((data) => data.password === data.passwordConfirm, { message:
"Passwords don't match"
, path: [
"passwordConfirm"
], });