Files
calendar/packages/trpc/server/routers/publicViewer/checkIfUserEmailVerificationRequired.schema.ts
T
3b1de34451 chore: Add guest email blacklist (#15255)
* chore: Add guest email blacklist

* types

* Added check to only log when we've removed one

* feat: add verification logic

* chore: use base exftract email

* Added toLowerCase for guest email checks

---------

Co-authored-by: Udit Takkar <udit222001@gmail.com>
2024-05-30 17:13:34 +00:00

9 lines
263 B
TypeScript

import { z } from "zod";
export const ZUserEmailVerificationRequiredSchema = z.object({
userSessionEmail: z.string().optional(),
email: z.string(),
});
export type TUserEmailVerificationRequiredSchema = z.infer<typeof ZUserEmailVerificationRequiredSchema>;