🐛 Fixing a bug. 修复token 失效,退出失败问题

This commit is contained in:
冷冷 2019-08-29 18:22:17 +08:00
parent e4249280c5
commit 3f2b72d464
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class PigTokenEndpoint {
String tokenValue = authHeader.replace(OAuth2AccessToken.BEARER_TYPE, StrUtil.EMPTY).trim();
OAuth2AccessToken accessToken = tokenStore.readAccessToken(tokenValue);
if (accessToken == null || StrUtil.isBlank(accessToken.getValue())) {
return R.failed("退出失败token 无效");
return R.ok();
}
tokenStore.removeAccessToken(accessToken);