feat: add codex personal access token auth

This commit is contained in:
syx0310
2026-06-22 16:07:41 +00:00
parent 85a3b12254
commit 32df33a1c3
26 changed files with 848 additions and 65 deletions
@@ -849,6 +849,7 @@ func (h *AccountHandler) refreshSingleAccount(ctx context.Context, account *serv
newCredentials[k] = v
}
}
newCredentials = service.NormalizeOpenAIPersonalAccessTokenCredentials(account, tokenInfo, newCredentials)
} else if account.Platform == service.PlatformGemini {
tokenInfo, err := h.geminiOAuthService.RefreshAccountToken(ctx, account)
if err != nil {