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

pull/9982/head^2
Cas 2026-01-22 23:53:09 +08:00 committed by GitHub
parent c3f393bcc1
commit e4286ae7a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,