Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JWT ¶
type JWT struct { SigningMethod jwt.SigningMethodRSA // contains filtered or unexported fields }
type JWTValidator ¶
type JWTValidator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(publicKey []byte) *JWTValidator
func (*JWTValidator) ValidateToken ¶
func (j *JWTValidator) ValidateToken(tokenString string) (*model.Payload, error)
Click to show internal directories.
Click to hide internal directories.