oauth

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenTypeAccess  = internaloauth.TokenTypeAccess
	TokenTypeRefresh = internaloauth.TokenTypeRefresh
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = internaloauth.Client

Client represents an OAuth client

func NewClient

func NewClient(config *Config) *Client

NewClient creates a new OAuth client

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 Token

type Token = internaloauth.Token

Token represents an OAuth token

type TokenResponse

type TokenResponse = internaloauth.TokenResponse

TokenResponse represents a token response

type TokenType

type TokenType = internaloauth.TokenType

TokenType represents the type of token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL