Skip to content

Commit

Permalink
[Feat] 로그아웃 토큰 수정 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonsseo committed Dec 22, 2023
1 parent 27e5292 commit 4386c0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public boolean validateAccessToken(String token) {
Jwts.parserBuilder().setSigningKey(key).build().parseClaimsJws(token);
if (redisService.hasTokenInBlackList(token)) {
System.out.println("[JwtTokenProvider] validateAccessToken 3. 레디스에 있는 거 확인");
throw new CustomException(ErrorCode.INVALID_TOKEN, "로그아웃된 ACCESS TOKEN");
// throw new CustomException(ErrorCode.INVALID_TOKEN, "로그아웃된 ACCESS TOKEN");
return false;
}
return true;
} catch (io.jsonwebtoken.security.SecurityException | MalformedJwtException e) {
Expand Down

0 comments on commit 4386c0b

Please sign in to comment.