Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Claims ¶
type Claims struct {
jwt.StandardClaims
Payload
}
Claims represents all the fields of jwt
func VerifyToken ¶
VerifyToken parses and verifies the token string
type Payload ¶
type Payload struct {
Salt string `json:"salt,omitempty"`
Ver string `json:"ver,omitempty"`
Uid int64 `json:"uid,omitempty"`
IP string `json:"ip,omitempty"`
Loc string `json:"loc,omitempty"`
Chan int `json:"chan,omitempty"`
Os string `json:"os,omitempty"`
Flags int64 `json:"flags,omitempty"`
Scopes []string `json:"scopes,omitempty"`
Name string `json:"name,omitempty"`
Avatar string `json:"avatar,omitempty"`
Gender int `json:"gender,omitempty"`
Accounts map[string]string `json:"accounts"`
}
Payload holds the custom fields of jwt
Click to show internal directories.
Click to hide internal directories.