Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTStringValidator ¶
type JWTStringValidator struct {
// contains filtered or unexported fields
}
func NewJWTStringValidator ¶
func NewJWTStringValidator(secretKey string) JWTStringValidator
func (*JWTStringValidator) ValidateAndGetUserID ¶
func (v *JWTStringValidator) ValidateAndGetUserID(tokenString string) (string, error)
ValidateAndGetUserID валидирует токен и получает из него UserID
Click to show internal directories.
Click to hide internal directories.