diff options
| author | Aiden Cline <[email protected]> | 2026-01-10 22:48:28 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2026-01-10 22:48:28 -0600 |
| commit | ee8b38ab267e76cb05a4c4303188b8605886a70a (patch) | |
| tree | efc453e320fdb2bd2564bcbc33ebc17656ef8de5 | |
| parent | 44fa3d5392d1a4c4cda65395be309d5420ee17ed (diff) | |
| download | opencode-ee8b38ab267e76cb05a4c4303188b8605886a70a.tar.gz opencode-ee8b38ab267e76cb05a4c4303188b8605886a70a.zip | |
fix: ensure /connect works for openai business plans too (was missing field)
| -rw-r--r-- | packages/opencode/src/provider/auth.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/opencode/src/provider/auth.ts b/packages/opencode/src/provider/auth.ts index d06253ab4..e6681ff08 100644 --- a/packages/opencode/src/provider/auth.ts +++ b/packages/opencode/src/provider/auth.ts @@ -99,12 +99,16 @@ export namespace ProviderAuth { }) } if ("refresh" in result) { - await Auth.set(input.providerID, { + const info: Auth.Info = { type: "oauth", access: result.access, refresh: result.refresh, expires: result.expires, - }) + } + if (result.accountId) { + info.accountId = result.accountId + } + await Auth.set(input.providerID, info) } return } |
