Something went wrong. Try again.
sloproxy
Something went wrong. Try again.
704 B · 23 lines
Go
at main
123456789101112131415161718192021222324package cmd
import ( sdkAuth "github.com/router-for-me/CLIProxyAPI/v7/sdk/auth")
// newAuthManager creates a new authentication manager instance with all supported// authenticators and a file-based token store. It initializes authenticators for// Codex, Claude, Antigravity, Kimi, and xAI providers.//// Returns:// - *sdkAuth.Manager: A configured authentication manager instancefunc newAuthManager() *sdkAuth.Manager { store := sdkAuth.GetTokenStore() manager := sdkAuth.NewManager(store, sdkAuth.NewCodexAuthenticator(), sdkAuth.NewClaudeAuthenticator(), sdkAuth.NewAntigravityAuthenticator(), sdkAuth.NewKimiAuthenticator(), sdkAuth.NewXAIAuthenticator(), ) return manager}