Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomClaims ¶
func Decode ¶
func Decode(tokenString string) (*CustomClaims, error)
Decode a token string into a token object
func EncodeByCtx ¶
func EncodeByCtx(c *gin.Context) (*CustomClaims, error)
EncodeByCtx 从ctx中的token获取登录用户信息
Click to show internal directories.
Click to hide internal directories.