From 4b2d7f4a234689001150218e7d114999753e3493 Mon Sep 17 00:00:00 2001 From: elive7 Date: Sun, 2 Jun 2024 15:15:00 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20refreshToken=20=ED=97=A4=EB=8D=94?= =?UTF-8?q?=EB=A1=9C=20=EB=8B=B4=EC=95=84=EC=84=9C=20=EC=9A=94=EC=B2=AD=20?= =?UTF-8?q?=EB=B3=B4=EB=82=B4=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/practice/auth/rds/controller/TokenController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/practice/src/main/java/opt/sopt/practice/auth/rds/controller/TokenController.java b/practice/src/main/java/opt/sopt/practice/auth/rds/controller/TokenController.java index 9e546a4..5da9be6 100644 --- a/practice/src/main/java/opt/sopt/practice/auth/rds/controller/TokenController.java +++ b/practice/src/main/java/opt/sopt/practice/auth/rds/controller/TokenController.java @@ -8,6 +8,7 @@ import org.springframework.http.ResponseEntity; 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.RestController; @@ -19,8 +20,7 @@ public class TokenController { @PostMapping("/token/refresh") public ResponseEntity refreshAccessToken( - @RequestBody RefreshTokenRequest refreshTokenRequest) { - String refreshToken = refreshTokenRequest.refreshToken(); + @RequestHeader String refreshToken) { return ResponseEntity.ok(tokenService.refreshAccessToken(refreshToken)); } }