Versions in this module Expand all Collapse all v2 v2.9.3 Mar 19, 2021 Changes in this version + var ErrEncodingToken = errors.New("error encoding the token") + var ErrInvalidToken = errors.New("invalid token provided") + var ErrNotFound = errors.New("token not found") + type GenerateOption func(o *GenerateOptions) + func WithExpiry(d time.Duration) GenerateOption + type GenerateOptions struct + Expiry time.Duration + func NewGenerateOptions(opts ...GenerateOption) GenerateOptions + type Option func(o *Options) + func WithPrivateKey(key string) Option + func WithPublicKey(key string) Option + func WithStore(s store.Store) Option + type Options struct + PrivateKey string + PublicKey string + Store store.Store + func NewOptions(opts ...Option) Options + type Provider interface + Generate func(account *auth.Account, opts ...GenerateOption) (*Token, error) + Inspect func(token string) (*auth.Account, error) + String func() string + type Token struct + Created time.Time + Expiry time.Time + Token string