Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { jwt.StandardClaims Uid string `json:"uid"` Device string `json:"device"` Ver int64 `json:"ver"` }
type JwtAuthInfo ¶
type JwtAuthorize ¶
type JwtAuthorize struct { }
func NewAuthorizeImpl ¶
func NewAuthorizeImpl(secret string) *JwtAuthorize
func (JwtAuthorize) RemoveToken ¶
func (a JwtAuthorize) RemoveToken(t *auth.Token) error
Click to show internal directories.
Click to hide internal directories.