Merge pull request #4516 from dataease/pr@dev@fix_refresh_token

fix(登录): 刷新token导致用户频繁掉线
This commit is contained in:
fit2cloud-chenyw 2023-02-13 11:21:58 +08:00 committed by GitHub
commit 3a02e6246e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ public class JWTFilter extends BasicHttpAuthenticationFilter {
if (StringUtils.startsWith(authorization, "Basic")) {
return false;
}
if (!TokenCacheUtils.validate(authorization) && TokenCacheUtils.validateDelay(authorization)) {
if (!TokenCacheUtils.validate(authorization) && !TokenCacheUtils.validateDelay(authorization)) {
throw new AuthenticationException(expireMessage);
}
// 当没有出现登录超时 且需要刷新token 则执行刷新token