Skip to content

Commit 43c9702

Browse files
author
Frank
committed
wip: zen
1 parent ae609be commit 43c9702

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/console/function/src

packages/console/function/src/auth.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ export default {
120120

121121
if (!email) throw new Error("No email found")
122122

123+
if (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) {
124+
throw new Error("Invalid email")
125+
}
126+
123127
let accountID = await Account.fromEmail(email).then((x) => x?.id)
124128
if (!accountID) {
125129
console.log("creating account for", email)

0 commit comments

Comments
 (0)