From 2af12c6bc4013a24d7b3d11ab55dd6a5b70b00f0 Mon Sep 17 00:00:00 2001 From: Anna-Jin Date: Sat, 23 Jul 2022 22:19:41 +0900 Subject: [PATCH] =?UTF-8?q?#18=20[Update]=20=EC=BD=94=EB=93=9C=20=EB=A6=AC?= =?UTF-8?q?=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 주석 추가 --- .../java/com/mpnp/baechelin/login/jwt/service/TokenService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java b/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java index 642879b..9c9088a 100644 --- a/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java +++ b/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java @@ -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);