Documentation ¶
Index ¶
Constants ¶
View Source
const ExpiredTime time.Duration = 1 * time.Hour
Variables ¶
View Source
var ( TokenExpired error = errors.New("Token is expired") TokenNotValidYet error = errors.New("Token not active yet") TokenMalformed error = errors.New("That's not even a token") TokenInvalid error = errors.New("Couldn't handle this token:") TokenNoSet error = errors.New("Token is not set") )
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(tokenString string) (*UserClaims, error)
type UserClaims ¶
Click to show internal directories.
Click to hide internal directories.