Versions in this module Expand all Collapse all v1 v1.0.1 Dec 21, 2024 Changes in this version + const NameJwt + func RegisterAuth(name string, auth Auth) + type Auth interface + GenerateToken func(kv map[string]interface{}, expired time.Duration) (string, error) + ValidateToken func(token string) (map[string]interface{}, error) + func GetAuth(name string) Auth + type JWT struct + func (j *JWT) GenerateToken(kv map[string]interface{}, expired time.Duration) (string, error) + func (j *JWT) ValidateToken(token string) (map[string]interface{}, error)