Versions in this module Expand all Collapse all v0 v0.1.1 Feb 7, 2023 v0.1.0 Jan 23, 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") + func ClientMiddleware(next endpoint.Endpoint) endpoint.Endpoint + func CommonMiddleware(next endpoint.Endpoint) endpoint.Endpoint + func JWTAuth() app.HandlerFunc + func Recovery() app.HandlerFunc + func ServerMiddleware(next endpoint.Endpoint) endpoint.Endpoint + type JWT struct + SigningKey []byte + func NewJWT() *JWT + func (j *JWT) CreateToken(claims models.CustomClaims) (string, error) + func (j *JWT) ParseToken(tokenString string) (*models.CustomClaims, error) + func (j *JWT) RefreshToken(tokenString string) (string, error)