Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2023 Changes in this version + type CustomClaims struct + UserId int64 + UserNo string + type Instance struct + func NewJwtInstance(c Jwt) *Instance + func (j *Instance) DecryptToken(tokenString string) (claims *CustomClaims, err error) + func (j *Instance) GenToken(userId int64) (jwtToken string, err error) + type Jwt struct + EffectAfter time.Duration + MaxAge time.Duration + SecretKey string