Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func JWTAuth ¶
func JWTAuth(secretKey string) gin.HandlerFunc
Types ¶
type CustomClaims ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(tokenString string) (*CustomClaims, error)
解析 token
Click to show internal directories.
Click to hide internal directories.