diff options
| author | Frank <[email protected]> | 2025-10-15 00:02:38 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-10-15 00:02:38 -0400 |
| commit | 43c9702aa760e34cd434ba04ae6343632ca1b7ac (patch) | |
| tree | 6b6770a111f472b690112eb7ce887b45630c3b6f /packages/console/function/src | |
| parent | ae609be7107e55fde99262ad9f1df0e98386df53 (diff) | |
| download | opencode-43c9702aa760e34cd434ba04ae6343632ca1b7ac.tar.gz opencode-43c9702aa760e34cd434ba04ae6343632ca1b7ac.zip | |
wip: zen
Diffstat (limited to 'packages/console/function/src')
| -rw-r--r-- | packages/console/function/src/auth.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/console/function/src/auth.ts b/packages/console/function/src/auth.ts index 4d3ca6591..835e8ffc1 100644 --- a/packages/console/function/src/auth.ts +++ b/packages/console/function/src/auth.ts @@ -120,6 +120,10 @@ export default { if (!email) throw new Error("No email found") + if (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) { + throw new Error("Invalid email") + } + let accountID = await Account.fromEmail(email).then((x) => x?.id) if (!accountID) { console.log("creating account for", email) |
