MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / NewCodexAuth

Function NewCodexAuth

internal/auth/codex/openai_auth.go:42–44  ·  view source on GitHub ↗

NewCodexAuth creates a new CodexAuth service instance. It initializes an HTTP client with proxy settings from the provided configuration.

(cfg *config.Config)

Source from the content-addressed store, hash-verified

40// NewCodexAuth creates a new CodexAuth service instance.
41// It initializes an HTTP client with proxy settings from the provided configuration.
42func NewCodexAuth(cfg *config.Config) *CodexAuth {
43 return NewCodexAuthWithProxyURL(cfg, "")
44}
45
46// NewCodexAuthWithProxyURL creates a new CodexAuth service instance.
47// proxyURL takes precedence over cfg.ProxyURL when non-empty.

Callers 3

auth_files.goFile · 0.92
loginWithDeviceFlowMethod · 0.92
LoginMethod · 0.92

Calls 1

NewCodexAuthWithProxyURLFunction · 0.85

Tested by

no test coverage detected