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);