Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
Types ¶
type Claims ¶
type Claims struct { Scope string `json:"scope"` RedirectURI string `json:"redirect_uri"` jwt.StandardClaims }
func ParseToken ¶
type JwtSetting ¶
type JwtSetting struct { Secret string `json:"secret" yaml:"secret"` Method string `json:"mehtod" yaml:"method"` OnlineUsers int `json:"onlineUser" yaml:"onlineUsers"` }
var (
Setting *JwtSetting = &JwtSetting{
Method: "HS256",
}
)
type UserDetails ¶
Click to show internal directories.
Click to hide internal directories.