Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + type HMACSigner struct + func NewHMACSigner(secret string) *HMACSigner + func (s *HMACSigner) Generate(ctx context.Context, subject string) (string, error) + func (s *HMACSigner) Verify(ctx context.Context, token string, payload []byte) (bool, error) + type TokenSigner interface + Generate func(ctx context.Context, subject string) (string, error) + Verify func(ctx context.Context, token string, payload []byte) (bool, error)