Versions in this module Expand all Collapse all v1 v1.0.1 Jun 20, 2025 v1.0.0 Jun 19, 2025 Changes in this version + type Authenticator struct + func NewAuthenticator(config Config) (*Authenticator, error) + func (auth *Authenticator) IssueAccessToken(subject string) (string, error) + func (auth *Authenticator) IssueJwt(claims jwt.Claims) (string, error) + func (auth *Authenticator) VerifyJwt(tokenString string) (*jwt.Token, error) + type Config struct + AccessTokenLifeTime time.Duration + PrivateKey string + PublicKey string + RefreshTokenLifeTime time.Duration