Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JwtPayload ¶
type JwtPayload struct { User interface{} `json:"user"` jwt.StandardClaims }
func ParseJwtToken ¶
func ParseJwtToken(jwtToken string, secret string) (*JwtPayload, error)
ParseJwtToken 解析 jwt token
Click to show internal directories.
Click to hide internal directories.