From f18d0774b1ab45e54f12ff126c6b7590defa56d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A0=95=EB=AF=BC?= Date: Thu, 25 Jul 2024 16:56:31 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=9E=90=EB=8F=99=ED=99=94=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/edufocus/edufocus/user/controller/UserController.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/src/main/java/com/edufocus/edufocus/user/controller/UserController.java b/backend/src/main/java/com/edufocus/edufocus/user/controller/UserController.java index f27e42d..9f5e6d7 100644 --- a/backend/src/main/java/com/edufocus/edufocus/user/controller/UserController.java +++ b/backend/src/main/java/com/edufocus/edufocus/user/controller/UserController.java @@ -65,10 +65,8 @@ public class UserController { String accessToken = jwtUtil.createAccessToken(String.valueOf(loginUser.getId())); String refreshToken = jwtUtil.createRefreshToken(String.valueOf(loginUser.getId())); - // 발급받은 refresh token 을 DB에 저장. userService.saveRefreshToken(loginUser.getId(), refreshToken); - // JSON 으로 token 전달. System.out.println(accessToken); resultMap.put("access-token", accessToken); // resultMap.put("refresh-token", refreshToken); @@ -82,7 +80,7 @@ public class UserController { response.addCookie(refreshCookie); - // 쿠키저장 + // 쿠키저장f status = HttpStatus.CREATED; } else { resultMap.put("message", "아이디 또는 패스워드를 확인해 주세요.");