Skip to content

Commit 9f81a82

Browse files
authored
fix: 토큰 검증에서 (만료 시간 < 현재 시간) 이어야 만료 처리되도록 수정 (#120)
1 parent ab894f6 commit 9f81a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/flint/flint/security/auth/jwt/JwtService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public Claims parseAllClaims(String token) {
109109
public boolean isTokenValid(String token) {
110110
String providerId = parseProviderId(token);
111111
Date expiration = parseExpiration(token);
112-
if(expiration.after(new Date())) {
112+
if(expiration.before(new Date())) {
113113
throw new FlintCustomException(HttpStatus.BAD_REQUEST, ResultCode.JWT_DATE_NOT);
114114
}
115115
if(memberRepository.existsByProviderId(providerId)) {

0 commit comments

Comments
 (0)