Documentation ¶
Index ¶
Constants ¶
View Source
const UserIDKey = "userID"
Variables ¶
This section is empty.
Functions ¶
func RefreshToken ¶
RefreshToken 刷新AccessToken
func SignPermanentToken ¶
Types ¶
type PerToken ¶
type PerToken struct { SignTo string `json:"sign_to"` jwt.StandardClaims }
type Token ¶
type Token struct { UserID int64 `json:"user_id"` jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.