Skip to content

Commit

Permalink
feat/#507: Swagger 로그아웃 API에서 memberId가 안보이도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Oct 8, 2024
1 parent e206d7c commit 0129882
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import javax.validation.Valid;

import com.gaebaljip.exceed.common.EatCeedStaticMessage;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand Down Expand Up @@ -69,7 +70,7 @@ public ApiResponse<ApiResponse.CustomBody<Void>> refresh(
@Operation(summary = "로그아웃", description = "로그아웃 한다.")
@PostMapping("/auth/logout")
public ApiResponse<ApiResponse.CustomBody<Void>> logout(
@AuthenticationMemberId Long memberId, HttpServletResponse response) {
@Parameter(hidden = true) @AuthenticationMemberId Long memberId, HttpServletResponse response) {
authUsecase.logout(memberId.toString());
deleteRefreshCookie(response);
return ApiResponseGenerator.success(HttpStatus.OK);
Expand Down

0 comments on commit 0129882

Please sign in to comment.