diff --git a/week02/seminar/demo/src/main/java/com/example/demo/service/MemberService.java b/week02/seminar/demo/src/main/java/com/example/demo/service/MemberService.java index 8770e38..91960d4 100644 --- a/week02/seminar/demo/src/main/java/com/example/demo/service/MemberService.java +++ b/week02/seminar/demo/src/main/java/com/example/demo/service/MemberService.java @@ -60,7 +60,7 @@ public RegenerateAccessTokenResponseDto getNewAccessToken( Token token = getRefreshToken(refreshToken); // 존재하는 토큰이 유효한 토큰인지(제대로 된 토큰인지) 다시 검증 - jwtTokenProvider.validateToken(refreshToken); + jwtTokenProvider.validateToken(token.getRefreshToken()); // 유효하다면 액세스 토큰 재발급 String accessToken = jwtTokenProvider.issueAccessToken(