From 05d739d06047e5d0fd30467a9ccb599878024146 Mon Sep 17 00:00:00 2001 From: yeonjy Date: Wed, 18 Sep 2024 20:56:01 +0900 Subject: [PATCH] =?UTF-8?q?!Hotfix:=20login=20=EC=9D=91=EB=8B=B5=20?= =?UTF-8?q?=EC=B6=A9=EB=8F=8C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/rollthedice/backend/global/oauth2/api/AuthApi.java | 4 +--- .../backend/global/oauth2/api/AuthController.java | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthApi.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthApi.java index c9cabee..77815d9 100644 --- a/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthApi.java +++ b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthApi.java @@ -8,8 +8,6 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.servlet.http.HttpServletResponse; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestBody; @Tag(name = "Auth") @@ -23,7 +21,7 @@ public interface AuthApi { responseCode = "200", description = "소셜 로그인에 성공했습니다." ) - SuccessResponse login( + void login( @RequestBody LoginRequest request, HttpServletResponse response ); diff --git a/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthController.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthController.java index 27ba7e0..a31287b 100644 --- a/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthController.java +++ b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/api/AuthController.java @@ -10,13 +10,11 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; -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.ResponseStatus; import org.springframework.web.bind.annotation.RestController; -import static com.rollthedice.backend.global.common.response.SuccessCode.GET_SOCIAL_LOGIN_SUCCESS; import static com.rollthedice.backend.global.common.response.SuccessCode.UPDATE_NICKNAME_SUCCESS; @Slf4j @@ -29,9 +27,8 @@ public class AuthController implements AuthApi { @ResponseStatus(HttpStatus.OK) @PostMapping("/login") @Override - public SuccessResponse login(@RequestBody LoginRequest request, HttpServletResponse response) { + public void login(@RequestBody LoginRequest request, HttpServletResponse response) { authService.authenticateOrRegisterUser(request, response); - return SuccessResponse.of(GET_SOCIAL_LOGIN_SUCCESS); } @PostMapping("/oauth2/sign-up")