Skip to content

Commit

Permalink
!Hotfix: login 응답 충돌 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed Sep 18, 2024
1 parent 72adcc8 commit 05d739d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -23,7 +21,7 @@ public interface AuthApi {
responseCode = "200",
description = "소셜 로그인에 성공했습니다."
)
SuccessResponse<String> login(
void login(
@RequestBody LoginRequest request,
HttpServletResponse response
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,9 +27,8 @@ public class AuthController implements AuthApi {
@ResponseStatus(HttpStatus.OK)
@PostMapping("/login")
@Override
public SuccessResponse<String> 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")
Expand Down

0 comments on commit 05d739d

Please sign in to comment.