Versions in this module Expand all Collapse all v0 v0.0.1 Feb 19, 2025 Changes in this version + func WithDecryptKey(decryptKey string) option.Option[Options] + func WithGenIDFunc(fn func() string) option.Option[Options] + func WithIssuer(issuer string) option.Option[Options] + func WithMethod(method jwt.SigningMethod) option.Option[Options] + func WithNowFunc[T any](nowFunc func() time.Time) option.Option[Management[T]] + type Management struct + func NewManagement[T any](accessJWTOptions Options, opts ...option.Option[Management[T]]) *Management[T] + func (m *Management[T]) GenerateAccessToken(data T) (string, error) + func (m *Management[T]) VerifyAccessToken(token string, opts ...jwt.ParserOption) (RegisteredClaims[T], error) + type Manager interface + GenerateAccessToken func(data T) (string, error) + VerifyAccessToken func(token string, opts ...jwt.ParserOption) (RegisteredClaims[T], error) + type Options struct + DecryptKey string + EncryptionKey string + Expire time.Duration + Issuer string + Method jwt.SigningMethod + func NewOptions(expire time.Duration, encryptionKey string, opts ...option.Option[Options]) Options + type RegisteredClaims struct + Data T