Documentation ¶
Overview ¶
Package jwt provides ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Customclaims ¶
type Customclaims struct { Empname string `json:"empname"` Phone string `json:"phone"` Role string `json:"role"` jwt.StandardClaims }
载荷
type JWT ¶
type JWT struct {
SigningKey []byte
}
JWT签名结构
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(tokenString string) (*Customclaims, error)
解析token
Click to show internal directories.
Click to hide internal directories.