Skip to content

Commit

Permalink
fix: isExpired 임시 log 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
junpakPark committed Sep 19, 2023
1 parent 48c6a52 commit 6ea4806
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 6ea4806

Please sign in to comment.