feat: add Codex API authentication module with TLS fingerprinting and PoW solving, and introduce team processing API.

This commit is contained in:
2026-02-03 07:48:06 +08:00
parent a4aed8890f
commit 33289b633d
2 changed files with 13 additions and 7 deletions

View File

@@ -622,7 +622,11 @@ func min(a, b int) int {
// authURL 和 sessionID 由 S2A 生成
func CompleteWithCodexAPI(email, password, workspaceID, authURL, sessionID, proxy string, logger *AuthLogger) (string, error) {
if logger != nil {
logger.LogStep(StepBrowserStart, "使用 CodexAuth API 模式...")
if proxy != "" {
logger.LogStep(StepBrowserStart, "使用 CodexAuth API 模式 (代理: %s)", proxy)
} else {
logger.LogStep(StepBrowserStart, "使用 CodexAuth API 模式 (无代理)")
}
}
auth, err := NewCodexAPIAuth(email, password, workspaceID, authURL, sessionID, proxy, logger)