diff --git a/packages/console/function/src/auth.ts b/packages/console/function/src/auth.ts index eb31015e..f1f341ce 100644 --- a/packages/console/function/src/auth.ts +++ b/packages/console/function/src/auth.ts @@ -134,6 +134,7 @@ export default { if (!subject) throw new Error("No subject found") if (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) { + throw new Error("Invalid email") } // Get account