Browse Source

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

Cas 7 tháng trước cách đây
mục cha
commit
e4286ae7a3

+ 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 tokens = await refreshAccessToken(currentAuth.refresh)
               const newAccountId = extractAccountId(tokens) || authWithAccount.accountId
               const newAccountId = extractAccountId(tokens) || authWithAccount.accountId
               await input.client.auth.set({
               await input.client.auth.set({
-                path: { id: "codex" },
+                path: { id: "openai" },
                 body: {
                 body: {
                   type: "oauth",
                   type: "oauth",
                   refresh: tokens.refresh_token,
                   refresh: tokens.refresh_token,