Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtPayload ¶
type JwtPayload struct { UserID uint `json:"user_id"` jwt.RegisteredClaims }
JwtPayload JWT Token 附带的数据
func ParseToken ¶
func ParseToken(tokenStr string, secretKey string) (*JwtPayload, error)
ParseToken 验证、解析 JWT Token
Click to show internal directories.
Click to hide internal directories.