fix: 更新AuthServiceImpl实现
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,7 @@ public class AuthServiceImpl implements AuthService {
|
|||||||
String cacheValue = stringRedisTemplate.opsForValue().get(cacheKey);
|
String cacheValue = stringRedisTemplate.opsForValue().get(cacheKey);
|
||||||
|
|
||||||
if (cacheValue == null || !cacheValue.equals(refreshToken)) {
|
if (cacheValue == null || !cacheValue.equals(refreshToken)) {
|
||||||
throw new ServiceException("Refresh Token 已失效");
|
throw new ServiceException(ErrorCode.NO_AUTH_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 再次签发新的 Access Token
|
// 再次签发新的 Access Token
|
||||||
|
|||||||
Reference in New Issue
Block a user