浏览代码

fix(codex): write refresh tokens to openai auth (#10010) (#10011)

Cas 6 月之前
父节点
当前提交
e4286ae7a3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/opencode/src/plugin/codex.ts

+ 1 - 1
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,