From 1b63c8ce0ea5bc3534c32ae001c76b20686caeb5 Mon Sep 17 00:00:00 2001 From: KyungMin Lee Date: Wed, 20 Mar 2024 12:48:20 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20Reissue=20API=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogakgo/domain/auth/presentation/AuthController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/oeid/mogakgo/domain/auth/presentation/AuthController.java b/src/main/java/io/oeid/mogakgo/domain/auth/presentation/AuthController.java index 8c706f26..1b79b950 100644 --- a/src/main/java/io/oeid/mogakgo/domain/auth/presentation/AuthController.java +++ b/src/main/java/io/oeid/mogakgo/domain/auth/presentation/AuthController.java @@ -7,8 +7,9 @@ import io.oeid.mogakgo.domain.auth.presentation.dto.res.AuthTokenApiResponse; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.CookieValue; +import org.springframework.lang.NonNull; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -24,7 +25,7 @@ public class AuthController implements AuthSwagger { @PostMapping("/reissue") public ResponseEntity reissue( @RequestHeader(AUTHORIZATION) String accessToken, - @CookieValue(value = "refreshToken") String refreshToken) { + @RequestBody @NonNull String refreshToken) { var accessTokenDto = authService.reissue(accessToken, refreshToken); return ResponseEntity.ok( AuthTokenApiResponse.of(accessTokenDto.getAccessToken(), null, null));