mirror of https://gitee.com/maxjhandsome/pig
🐛 Fixing a bug. 修复token 失效,退出失败问题
This commit is contained in:
parent
e4249280c5
commit
3f2b72d464
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue