Skip to content

Commit

Permalink
Fix: regenerate GET으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dainshon committed Jul 28, 2024
1 parent 88d25f7 commit 31552f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
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.RestController;
Expand All @@ -24,7 +25,7 @@ public class LoginController {
private final LoginService loginService;
private final Long refreshTokenValidTime = (60 * 1000L) * 60 * 24 * 7; // 7일

@PostMapping("/regenerate-token")
@GetMapping("/regenerate-token")
public BaseResponse<String> regenerateToken(HttpServletRequest request, HttpServletResponse response) {
Cookie refreshToken = WebUtils.getCookie(request, "refreshToken");
TokenInfo tokenInfo = loginService.reissue(Objects.requireNonNull(refreshToken).getValue());
Expand Down

0 comments on commit 31552f6

Please sign in to comment.