Skip to content

Commit

Permalink
fix: 토큰 검증에서 유저의 존재가 없어야 에러가 발생하도록 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGun committed Nov 26, 2023
1 parent 9f81a82 commit 1263643
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean isTokenValid(String token) {
if(expiration.before(new Date())) {
throw new FlintCustomException(HttpStatus.BAD_REQUEST, ResultCode.JWT_DATE_NOT);
}
if(memberRepository.existsByProviderId(providerId)) {
if(!memberRepository.existsByProviderId(providerId)) {
throw new FlintCustomException(HttpStatus.NOT_FOUND, ResultCode.USER_NOT_FOUND);
}
return true;
Expand Down

0 comments on commit 1263643

Please sign in to comment.