Versions in this module Expand all Collapse all v0 v0.0.13 Nov 7, 2026 Changes in this version + var GitHub = Endpoint + type Config struct + ClientID string + ClientSecret string + Endpoint Endpoint + Ephemeral bool + Params map[string]string + RedirectURL string + Scopes []string + type Endpoint struct + AuthURL string + TokenURL string + func Microsoft(tenant string) Endpoint + type Error struct + Code string + Description string + func (e *Error) Error() string + type Grant struct + Code string + RedirectURL string + Verifier string + func Authorize(ctx context.Context, c Config) (Grant, error) + type Token struct + AccessToken string + Expiry time.Time + IDToken string + RefreshToken string + Scope string + TokenType string + func Exchange(ctx context.Context, c Config, g Grant) (Token, error) + func Refresh(ctx context.Context, c Config, refreshToken string) (Token, error) + func SignIn(ctx context.Context, c Config) (Token, error)