Documentation
¶
Index ¶
Constants ¶
View Source
const (
// CookieName JWT令牌的Cookie名称
CookieName = "jwt_token"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JwtCustomClaims ¶
type JwtCustomClaims struct {
Username string `json:"username"`
Admin bool `json:"admin"`
jwt.RegisteredClaims
}
JwtCustomClaims 扩展默认的"JWT声明"。更多示例,请参见https://github.com/golang-jwt/jwt
Click to show internal directories.
Click to hide internal directories.