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