From 5cdb476481b4a07836f0d9ddae4b0ec0931c8159 Mon Sep 17 00:00:00 2001 From: Limwngur <101847711+Juhyeok0202@users.noreply.github.com> Date: Sun, 30 Jul 2023 16:16:07 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=BDRefactor=20#42:=20reiussnaceToken=20?= =?UTF-8?q?=EB=B0=98=ED=99=98=ED=95=98=EB=8A=94=20form=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit before: String 토큰값 after: Map { "accessToken": "토큰값" } --- .../DongnaeFriend/domain/user/contorller/UserController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/umc/DongnaeFriend/domain/user/contorller/UserController.java b/src/main/java/com/umc/DongnaeFriend/domain/user/contorller/UserController.java index 25f6ae0..e1f7aac 100644 --- a/src/main/java/com/umc/DongnaeFriend/domain/user/contorller/UserController.java +++ b/src/main/java/com/umc/DongnaeFriend/domain/user/contorller/UserController.java @@ -70,7 +70,9 @@ public ResponseEntity reiussnaceToken(@RequestParam("refreshToken") String re //토큰 재발급 String access_token = userService.createAccessTokenFromRefreshToken(refreshToken); - return ResponseEntity.ok(access_token); + Map accessToken = new HashMap<>(); + accessToken.put("accessToken",access_token); + return ResponseEntity.ok(accessToken); } catch (Exception e) { // RefreshToken만료 throw new CustomException(ErrorCode.INVALID_REFRESH_TOKEN);