Skip to content

Commit

Permalink
fix : IOException 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
YunJuwon0825 committed Feb 27, 2025
1 parent 87db610 commit 52b7019
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@
import io.swagger.v3.oas.annotations.Operation;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import java.io.IOException;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

@RestController
@RequiredArgsConstructor
Expand Down Expand Up @@ -55,7 +48,7 @@ public CommonResponse<Void> logoutUser() {
@PostMapping("/reissue")
public CommonResponse<Void> reGenerateAccessToken(
@CookieValue(value = "refreshToken", required = false) String refreshToken,
HttpServletResponse response) throws IOException {
HttpServletResponse response) {
// Cookie에 있는 Refresh Token을 이용하여 새로운 Access Token을 발급
JwtToken token = userService.reissueAccessToken(refreshToken);

Expand Down

0 comments on commit 52b7019

Please sign in to comment.