Documentation
¶
Index ¶
Constants ¶
View Source
const ( TokenTypeAccess = internaloauth.TokenTypeAccess TokenTypeRefresh = internaloauth.TokenTypeRefresh )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config = internaloauth.Config
Config represents OAuth client configuration
func DefaultOpenAIConfig ¶
func DefaultOpenAIConfig() *Config
DefaultOpenAIConfig returns OAuth config for ChatGPT authentication. Uses the same device auth flow as Codex CLI (github.com/openai/codex). Issuer: https://auth.openai.com
type DeviceCodeResponse ¶
type DeviceCodeResponse = internaloauth.DeviceCodeResponse
DeviceCodeResponse represents the normalised device code response.
type TokenResponse ¶
type TokenResponse = internaloauth.TokenResponse
TokenResponse represents a token response
Click to show internal directories.
Click to hide internal directories.