mirror of
https://github.com/weloe/token-go.git
synced 2025-10-04 15:12:47 +08:00
refactor: add LogoutByToken() and SetJwtSecretKey()
This commit is contained in:
@@ -14,6 +14,7 @@ type IEnforcer interface {
|
||||
Login(id string, ctx ctx.Context) (string, error)
|
||||
LoginByModel(id string, loginModel *model.Login, ctx ctx.Context) (string, error)
|
||||
Logout(ctx ctx.Context) error
|
||||
LogoutByToken(token string) error
|
||||
IsLogin(ctx ctx.Context) (bool, error)
|
||||
IsLoginById(id string) (bool, error)
|
||||
GetLoginId(ctx ctx.Context) (string, error)
|
||||
|
Reference in New Issue
Block a user