Versions in this module Expand all Collapse all v1 v1.0.0 Dec 1, 2024 Changes in this version + type Author interface + AuthString func(id, info string) (string, error) + Verify func(token string) (string, string, error) + func NewJWTAuthor(expirationTime time.Duration, secret string) Author + type JWTAuthor struct + ExpirationTime time.Duration + Secret string + func (g *JWTAuthor) AuthString(id, unEncryptedInfo string) (string, error) + func (g *JWTAuthor) Verify(token string) (string, string, error)