Versions in this module Expand all Collapse all v0 v0.0.11 Sep 15, 2024 Changes in this version + var ErrExpiredToken = errors.New("auth token expired") + var ErrInvalidToken = errors.New("auth token invalid") + type Claims interface + Expired func() bool + GetId func() uuid.UUID + GetIssuer func() string + GetTenant func() string + type Jwt interface + Generate func(issuer, tenant string, duration time.Duration) (string, error) + Validate func(token string) (Claims, error) + func Init(secret string) (Jwt, error)