Versions in this module Expand all Collapse all v0 v0.1.2 May 27, 2022 v0.1.1 Apr 12, 2022 v0.1.0 Mar 16, 2022 Changes in this version + var ErrKID = errors.New("the JWT has an invalid kid") + var ErrKIDNotFound = errors.New("the given key ID was not found in the JWKs") + var ErrMissingAssets = errors.New("required assets are missing to create a public key") + var ErrUnsupportedKeyType = errors.New("the JWT key type is unsupported") + type ErrorHandler func(err error) + type JSONKey struct + Curve string + Exponent string + ID string + Modulus string + X string + Y string + func (j *JSONKey) ECDSA() (publicKey *ecdsa.PublicKey, err error) + func (j *JSONKey) RSA() (publicKey *rsa.PublicKey, err error) + type JWKs struct + Keys map[string]*JSONKey + func Get(jwksURL string, options ...Options) (jwks *JWKs, err error) + func New(jwksBytes json.RawMessage) (jwks *JWKs, err error) + func (j *JWKs) EndBackground() + func (j *JWKs) KeyFunc(token *jwt.Token) (interface{}, error) + type Options struct + Client *http.Client + RefreshErrorHandler ErrorHandler + RefreshInterval *time.Duration + RefreshTimeout *time.Duration + RefreshUnknownKID *bool v0.0.0-alpha.1 Jul 16, 2021 v0.0.0-alpha.0 Jul 1, 2021