Spaces:
Sleeping
Sleeping
Download src/schemas/auth.schema.ts from Anoderb/Tokiva-backend-Node: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/Anoderb/Tokiva-backend-Node/resolve/main/src/schemas/auth.schema.ts
- Command line
-
hf download hf://spaces/Anoderb/Tokiva-backend-Node/src/schemas/auth.schema.ts
-
curl -L -o auth.schema.ts https://huggingface.co/spaces/Anoderb/Tokiva-backend-Node/resolve/main/src/schemas/auth.schema.ts
496 Bytes
| import { z } from 'zod'; | |
| export const loginSchema = z.object({ | |
| body: z.object({ | |
| username: z.string({ required_error: 'Username wajib diisi' }).min(1, 'Username tidak boleh kosong'), | |
| password: z.string({ required_error: 'Password wajib diisi' }).min(1, 'Password tidak boleh kosong'), | |
| }), | |
| }); | |
| export const refreshSchema = z.object({ | |
| body: z.object({ | |
| refresh_token: z.string({ required_error: 'Refresh token wajib diisi' }).min(1, 'Refresh token tidak boleh kosong'), | |
| }), | |
| }); | |