Versions in this module Expand all Collapse all v0 v0.1.0 May 15, 2026 Changes in this version + func BuildLoginURL(cfg FrontendConfig, params LoginParams) (string, error) + func GenerateState() (string, error) + type AuthorizeOptions struct + Timeout time.Duration + type Backend struct + func NewBackend(cfg BackendConfig) (*Backend, error) + func (b *Backend) ExchangeCode(ctx context.Context, code string) (SlotInfo, error) + func (b *Backend) GetSlotInfo(ctx context.Context, jwt string, opts AuthorizeOptions) (SlotInfo, error) + func (b *Backend) HandleCallback(w http.ResponseWriter, r *http.Request) + func (b *Backend) Logout(ctx context.Context, jwt string) error + func (b *Backend) RefreshTokens(ctx context.Context, opts RefreshOptions) (TokenSet, error) + func (b *Backend) Shutdown(_ context.Context) error + type BackendConfig struct + AuthServerURL string + ClientID string + ClientSecret string + HTTPClient *http.Client + RedirectURI string + type FrontendConfig struct + AltsCodexURL string + ClientID string + RedirectURI string + ResponseType string + type LoginParams struct + State string + type RefreshOptions struct + Code string + RefreshToken string + type SlotInfo struct + AccessToken string + Code string + ContentAddress string + ID string + TRCnt int + TokenNickname string + type TokenSet struct + AccessToken string + Code string + JWT string + RefreshToken string