mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
11 lines
No EOL
274 B
TypeScript
11 lines
No EOL
274 B
TypeScript
import { z } from "zod";
|
|
|
|
export const verifyTotpDto = z.object({
|
|
code: z
|
|
.string()
|
|
.trim()
|
|
.min(6, { message: 'Must be at least 6 characters' })
|
|
.max(6, { message: 'Must be less than 6 characters' }),
|
|
});
|
|
|
|
export type VerifyTotpDto = z.infer<typeof verifyTotpDto>; |