summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/provider/auth.ts9
-rw-r--r--packages/plugin/src/index.ts2
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/opencode/src/provider/auth.ts b/packages/opencode/src/provider/auth.ts
index 759f8803a..fc4cc5e6b 100644
--- a/packages/opencode/src/provider/auth.ts
+++ b/packages/opencode/src/provider/auth.ts
@@ -215,12 +215,13 @@ export namespace ProviderAuth {
}
if ("refresh" in result) {
+ const { type: _, provider: __, refresh, access, expires, ...extra } = result
yield* auth.set(input.providerID, {
type: "oauth",
- access: result.access,
- refresh: result.refresh,
- expires: result.expires,
- ...(result.accountId ? { accountId: result.accountId } : {}),
+ access,
+ refresh,
+ expires,
+ ...extra,
})
}
})
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 7e5ae7a6e..8bdb51a2a 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -129,6 +129,7 @@ export type AuthOuathResult = { url: string; instructions: string } & (
access: string
expires: number
accountId?: string
+ enterpriseUrl?: string
}
| { key: string }
))
@@ -149,6 +150,7 @@ export type AuthOuathResult = { url: string; instructions: string } & (
access: string
expires: number
accountId?: string
+ enterpriseUrl?: string
}
| { key: string }
))