Add procedure for registration tokens management

This commit is contained in:
Manuel
2023-07-29 21:11:52 +02:00
parent cf12c8575d
commit b4c188e797
7 changed files with 232 additions and 10 deletions

View File

@@ -0,0 +1,9 @@
import dayjs from 'dayjs';
import { z } from 'zod';
export const createRegistrationTokenSchema = z.object({
expiration: z
.date()
.min(dayjs().add(5, 'minutes').toDate())
.max(dayjs().add(6, 'months').toDate()),
});