diff options
| author | Cas <[email protected]> | 2026-01-22 23:53:09 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-22 09:53:09 -0600 |
| commit | e4286ae7a3203ef6b980561444880a5a4b689566 (patch) | |
| tree | 1e8d88247193624beba86a7a9e6cc3b2180f423d | |
| parent | c3f393bcc10ece40c979fee8861ced19844a8108 (diff) | |
| download | opencode-e4286ae7a3203ef6b980561444880a5a4b689566.tar.gz opencode-e4286ae7a3203ef6b980561444880a5a4b689566.zip | |
fix(codex): write refresh tokens to openai auth (#10010) (#10011)
| -rw-r--r-- | packages/opencode/src/plugin/codex.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.ts index 3e31c6ce4..cd9eaea45 100644 --- a/packages/opencode/src/plugin/codex.ts +++ b/packages/opencode/src/plugin/codex.ts @@ -399,7 +399,7 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> { const tokens = await refreshAccessToken(currentAuth.refresh) const newAccountId = extractAccountId(tokens) || authWithAccount.accountId await input.client.auth.set({ - path: { id: "codex" }, + path: { id: "openai" }, body: { type: "oauth", refresh: tokens.refresh_token, |
