refactor: add LogoutByToken() and SetJwtSecretKey()

This commit is contained in:
weloe
2023-05-19 22:40:22 +08:00
parent c50b10f5f6
commit dc9f137435
4 changed files with 12 additions and 3 deletions

View File

@@ -301,7 +301,7 @@ func (e *Enforcer) Logout(ctx ctx.Context) error {
tokenConfig.CookieConfig.Domain)
}
err := e.logoutByToken(token)
err := e.LogoutByToken(token)
if err != nil {
return err