Skip to content

Commit

Permalink
feat(JwtTokenProvider): 토큰 로깅 구현 (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks authored Jan 13, 2025
1 parent 53adbbe commit 818a23b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ public JwtExceptionType validateToken(String token) {
.getBody();
return JwtExceptionType.VALID_JWT_TOKEN;
} catch (io.jsonwebtoken.security.SignatureException exception) {
log.error("잘못된 JWT 서명을 가진 토큰입니다.");
log.error("잘못된 JWT 서명을 가진 토큰입니다. token : {}", token);
return JwtExceptionType.INVALID_JWT_SIGNATURE;
} catch (MalformedJwtException exception) {
log.error("잘못된 JWT 토큰입니다.");
log.error("잘못된 JWT 토큰입니다. token : {}.", token);
return JwtExceptionType.INVALID_JWT_TOKEN;
} catch (ExpiredJwtException exception) {
log.error("만료된 JWT 토큰입니다.");
log.error("만료된 JWT 토큰입니다. token : {}.", token);
return JwtExceptionType.EXPIRED_JWT_TOKEN;
} catch (UnsupportedJwtException exception) {
log.error("지원하지 않는 JWT 토큰입니다.");
log.error("지원하지 않는 JWT 토큰입니다. token : {}.", token);
return JwtExceptionType.UNSUPPORTED_JWT_TOKEN;
} catch (IllegalArgumentException exception) {
log.error("JWT Claims가 비어있습니다.");
log.error("JWT Claims가 비어있습니다. token : {}.", token);
return JwtExceptionType.EMPTY_JWT;
}
}
Expand Down

0 comments on commit 818a23b

Please sign in to comment.