Skip to content

Commit ab26bc9

Browse files
authored
fix: 토큰 검증에서 유저의 존재가 없어야 에러가 발생하도록 로직 수정 (#122)
1 parent 9f81a82 commit ab26bc9

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
@@ -112,7 +112,7 @@ public boolean isTokenValid(String token) {
112112
if(expiration.before(new Date())) {
113113
throw new FlintCustomException(HttpStatus.BAD_REQUEST, ResultCode.JWT_DATE_NOT);
114114
}
115-
if(memberRepository.existsByProviderId(providerId)) {
115+
if(!memberRepository.existsByProviderId(providerId)) {
116116
throw new FlintCustomException(HttpStatus.NOT_FOUND, ResultCode.USER_NOT_FOUND);
117117
}
118118
return true;

0 commit comments

Comments
 (0)