Documentation ¶
Index ¶
- Variables
- type JWT
- func (j *JWT) CreateClaims(baseClaims request.PrivateClaims) request.CustomClaims
- func (j *JWT) CreateToken(claims request.CustomClaims) (string, error)
- func (j *JWT) InBlackList(jwt string) bool
- func (j *JWT) ParseToken(tokenStr string) (*request.CustomClaims, error)
- func (j *JWT) SetJWTBlack(jwt string) (err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) CreateClaims ¶
func (j *JWT) CreateClaims(baseClaims request.PrivateClaims) request.CustomClaims
func (*JWT) CreateToken ¶
func (j *JWT) CreateToken(claims request.CustomClaims) (string, error)
func (*JWT) InBlackList ¶
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(tokenStr string) (*request.CustomClaims, error)
func (*JWT) SetJWTBlack ¶
Click to show internal directories.
Click to hide internal directories.