We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae609be commit 43c9702Copy full SHA for 43c9702
1 file changed
packages/console/function/src/auth.ts
@@ -120,6 +120,10 @@ export default {
120
121
if (!email) throw new Error("No email found")
122
123
+ if (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) {
124
+ throw new Error("Invalid email")
125
+ }
126
+
127
let accountID = await Account.fromEmail(email).then((x) => x?.id)
128
if (!accountID) {
129
console.log("creating account for", email)
0 commit comments