mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-12-01 19:51:53 +08:00
commit
68a0b381c1
@ -76,7 +76,7 @@ public class OAuth2TokenServiceImpl implements OAuth2TokenService {
|
|||||||
|
|
||||||
// 已过期的情况下,删除刷新令牌
|
// 已过期的情况下,删除刷新令牌
|
||||||
if (DateUtils.isExpired(refreshTokenDO.getExpiresTime())) {
|
if (DateUtils.isExpired(refreshTokenDO.getExpiresTime())) {
|
||||||
oauth2AccessTokenMapper.deleteById(refreshTokenDO.getId());
|
oauth2RefreshTokenMapper.deleteById(refreshTokenDO.getId());
|
||||||
throw exception0(GlobalErrorCodeConstants.UNAUTHORIZED.getCode(), "刷新令牌已过期");
|
throw exception0(GlobalErrorCodeConstants.UNAUTHORIZED.getCode(), "刷新令牌已过期");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user