diff options
Diffstat (limited to 'cloud/function')
| -rw-r--r-- | cloud/function/src/auth.ts | 4 | ||||
| -rw-r--r-- | cloud/function/sst-env.d.ts | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/cloud/function/src/auth.ts b/cloud/function/src/auth.ts index 17c3fa8ea..bda02cd87 100644 --- a/cloud/function/src/auth.ts +++ b/cloud/function/src/auth.ts @@ -10,6 +10,7 @@ import { Account } from "@opencode/cloud-core/account.js" import { Workspace } from "@opencode/cloud-core/workspace.js" import { Actor } from "@opencode/cloud-core/actor.js" import { Resource } from "@opencode/cloud-resource" +import { Database } from "@opencode/cloud-core/drizzle/index.js" type Env = { AuthStorage: KVNamespace @@ -33,7 +34,7 @@ const MY_THEME: Theme = { export default { async fetch(request: Request, env: Env, ctx: ExecutionContext) { - return issuer({ + const result = await issuer({ theme: MY_THEME, providers: { github: GithubProvider({ @@ -135,5 +136,6 @@ export default { return ctx.subject("account", accountID, { accountID, email }) }, }).fetch(request, env, ctx) + return result }, } diff --git a/cloud/function/sst-env.d.ts b/cloud/function/sst-env.d.ts index 9c4f5cc0d..d0b2bb4a4 100644 --- a/cloud/function/sst-env.d.ts +++ b/cloud/function/sst-env.d.ts @@ -18,14 +18,6 @@ declare module "sst" { "type": "sst.cloudflare.SolidStart" "url": string } - "DATABASE_PASSWORD": { - "type": "sst.sst.Secret" - "value": string - } - "DATABASE_USERNAME": { - "type": "sst.sst.Secret" - "value": string - } "Database": { "database": string "host": string |
