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); } }