UNPKG
@proofgeist/kit
Version:
beta (0.3.3-beta.ef5228b)
latest (0.3.2)
0.3.3-beta.ef5228b
0.3.2
0.3.1
0.3.0
0.2.4-beta.f849941
0.2.4-beta.c9e0cdd
0.2.3
0.2.3-beta.019c936
0.2.2
0.2.1
0.2.1-beta.d9f88d9
0.2.0
0.1.3-beta.af4f17e
0.1.3-beta.57c1ebd
0.1.2
0.1.2-beta.8abc1d9
0.1.2-beta.289346f
0.1.1
0.1.0
0.0.16-beta.9d9c6d4
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.10-beta.1
0.0.10-beta.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2-beta.0
0.0.1
Create web application with the ProofKit stack
github.com/proofgeist/proofkit
proofgeist/proofkit
@proofgeist/kit
/
template
/
extras
/
fmaddon-auth
/
app
/
auth
/
signup
/
schema.ts
13 lines
(11 loc)
•
308 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import { z }
from
"zod"
; 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"
, });