Versions in this module Expand all Collapse all v1 v1.2.2 Mar 10, 2023 v1.2.1 Feb 4, 2023 Changes in this version + var TokenExpired = errors.New("Token is expired") + var TokenInvalid = errors.New("Couldn't handle this token:") + var TokenMalformed = errors.New("That's not even a token") + var TokenNotValidYet = errors.New("Token not active yet") + type JWT struct + Life int64 + SigningKey []byte + func NewJWT(key []byte, second int64) *JWT + func NewJWTString(key string, second int64) *JWT + func (j *JWT) CreateToken(claim jwt.Claims) (string, error) + func (j *JWT) CreateTokenHash(method jwt.SigningMethod, claim jwt.Claims) (string, error) + func (j *JWT) NewBasicClaim(start time.Time) jwt.RegisteredClaims + func (j *JWT) ParseToken(claim jwt.Claims, tokenString string, options ...jwt.ParserOption) (jwt.Claims, error) + func (j *JWT) ParseTokenWithoutClaimsValidation(claim jwt.Claims, tokenString string) (jwt.Claims, error)