auth

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLoginCancelled = errors.New("login cancelled")

Functions

func CancelOpenAICodexLogin added in v0.3.0

func CancelOpenAICodexLogin() error

func FetchUserEmail

func FetchUserEmail(accessToken string) (string, string, error)

func IsExpired

func IsExpired(account *config.Account) bool

func LoginOpenAICodex

func LoginOpenAICodex() (*config.Account, error)

func OpenBrowserURL added in v0.3.0

func OpenBrowserURL(url string) error

func PollOpenAICodexLogin added in v0.3.0

func PollOpenAICodexLogin() (*config.Account, bool, error)

func RefreshToken

func RefreshToken(account *config.Account) error

Types

type OpenAICodexLoginStatus added in v0.3.0

type OpenAICodexLoginStatus struct {
	AuthURL           string
	BrowserOpenFailed bool
}

func StartOpenAICodexLogin added in v0.3.0

func StartOpenAICodexLogin() (OpenAICodexLoginStatus, error)

Jump to

Keyboard shortcuts

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