From 6ea480665223d1c0f05d3084dce251ab821f371b Mon Sep 17 00:00:00 2001 From: junpakPark <112045553+junpakPark@users.noreply.github.com> Date: Tue, 19 Sep 2023 21:04:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20isExpired=20=EC=9E=84=EC=8B=9C=20log=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapbefine/auth/infrastructure/JwtTokenProvider.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/main/java/com/mapbefine/mapbefine/auth/infrastructure/JwtTokenProvider.java b/backend/src/main/java/com/mapbefine/mapbefine/auth/infrastructure/JwtTokenProvider.java index 36a5d1ad..062dbf37 100644 --- a/backend/src/main/java/com/mapbefine/mapbefine/auth/infrastructure/JwtTokenProvider.java +++ b/backend/src/main/java/com/mapbefine/mapbefine/auth/infrastructure/JwtTokenProvider.java @@ -13,9 +13,11 @@ import io.jsonwebtoken.SignatureAlgorithm; import java.util.Date; import java.util.UUID; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; +@Slf4j @Component public class JwtTokenProvider implements TokenProvider { @@ -94,6 +96,8 @@ private boolean isExpired(String token) { } catch (ExpiredJwtException e) { return true; } catch (JwtException | IllegalArgumentException e) { + log.warn("source = {}", e.getStackTrace()[0].toString()); + throw new AuthUnauthorizedException(ILLEGAL_TOKEN); } }