Versions in this module Expand all Collapse all v0 v0.1.0 Oct 11, 2023 Changes in this version + const DefaultLeeway + type InvalidError struct + Claims Standard + Opts VerifyOptions + Reason InvalidReason + func (e InvalidError) Error() string + type InvalidReason int + const AudienceNotFound + const Expired + const IssuedAtFuture + const IssuerMismatch + const NotBefore + type Standard struct + Audience StringOrList + ExpiresAt *Time + IssuedAt *Time + Issuer string + JWTID string + NotBefore *Time + Scope StringOrList + Subject string + func (s Standard) Verify(opts VerifyOptions) error + type StringOrList []string + func (s *StringOrList) UnmarshalJSON(b []byte) error + func (s StringOrList) Split() []string + type Time time.Time + func (t *Time) UnmarshalJSON(b []byte) (err error) + func (t Time) MarshalJSON() ([]byte, error) + type VerifyOptions struct + Audience []string + Extra map[string]any + Issuer string + Time func() (t time.Time)