diff --git a/packages/backend/src/types.ts b/packages/backend/src/types.ts index c05be73..ce587bf 100644 --- a/packages/backend/src/types.ts +++ b/packages/backend/src/types.ts @@ -2,7 +2,9 @@ import { isAddress } from "viem"; import z from "zod"; export const SendOtpSchema = z.object({ - email: z.string().email().endsWith("@pse.dev"), + email: z.string().email().endsWith("@pse.dev").refine(email => !email.includes('+'), { + message: "Email must not contain '+'" + }), }); export type SendOtp = z.infer;