Skip to content

Commit

Permalink
#18 [Update] 코드 리팩토링
Browse files Browse the repository at this point in the history
주석 추가
  • Loading branch information
Anna-Jin committed Jul 23, 2022
1 parent 77dcdda commit 2af12c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public AuthResponse refreshToken(HttpServletRequest request, HttpServletResponse
throw new CustomException(ErrorCode.INVALID_REFRESH_TOKEN);
}

// userId와 refresh token 으로 DB 확인
// userId와 refresh token 으로 DB에 있는 refresh token과 cookie에 담긴 refresh token이 일치하는 지 확인
UserRefreshToken userRefreshToken = userRefreshTokenRepository.findBySocialIdAndRefreshToken(userId, refreshToken);
if (userRefreshToken == null) {
throw new CustomException(ErrorCode.INVALID_REFRESH_TOKEN);
Expand Down

0 comments on commit 2af12c6

Please sign in to comment.