Versions in this module Expand all Collapse all v0 v0.1.1 Mar 27, 2022 v0.0.1 Mar 20, 2022 Changes in this version + func New(opts ...Option) auth.Tokens + type Option func(*Options) + func ExpiresIn(exp time.Duration) Option + func Issuer(s string) Option + func RefreshExpiresIn(exp time.Duration) Option + func SignWithPaseto(key ...interface{}) Option + type Options struct + ExpiresIn time.Duration + Issuer string + RefreshExpiresIn time.Duration + SymmetricKey interface{} + type PasetoTokens struct + func (a *PasetoTokens) Options() interface{} + func (p *PasetoTokens) Generate(user *auth.Principal) (*auth.Token, error) + func (p *PasetoTokens) Inspect(token string) (*auth.Principal, error)