Versions in this module Expand all Collapse all v0 v0.1.0 Jul 31, 2026 Changes in this version + const CodeExpiredToken + const CodeInvalidToken + const CodeMissingToken + func WriteUnauthorized(w http.ResponseWriter, code string) + type AuthError struct + Code string + Reason string + func (e *AuthError) Error() string + type Claims struct + ClientID string + Name string + func ClaimsFromContext(ctx context.Context) (*Claims, bool) + type Config struct + Audience string + ClockSkew time.Duration + HTTPTimeout time.Duration + Issuer string + JWKSURL string + MinRefreshInterval time.Duration + OnResult func(result string) + type Verifier struct + func New(cfg Config) (*Verifier, error) + func (v *Verifier) Middleware(onDenied func(r *http.Request, authErr *AuthError)) func(http.Handler) http.Handler + func (v *Verifier) Prime(ctx context.Context) error + func (v *Verifier) Verify(ctx context.Context, authorization string) (*Claims, *AuthError)