-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT] 회원탈퇴 API 개발 #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| import jakarta.servlet.http.HttpServletResponse; | ||
| import jakarta.validation.Valid; | ||
| import org.springframework.http.ResponseEntity; | ||
| import org.springframework.security.core.annotation.AuthenticationPrincipal; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 문서의 회원탈퇴 설명(DB Soft Delete)와 실제 구현 불일치 Docs 인터페이스 시그니처는 문서와 실제 동작을 일치시키기 위해서는:
현재 상태는 API 계약과 구현이 어긋난 상태이므로 정리가 필요해 보입니다. Also applies to: 17-17, 38-42 🤖 Prompt for AI Agents |
||
| import org.springframework.web.bind.annotation.CookieValue; | ||
| import org.springframework.web.bind.annotation.RequestBody; | ||
| import team.wego.wegobackend.auth.application.dto.request.LoginRequest; | ||
|
|
@@ -13,6 +14,7 @@ | |
| import team.wego.wegobackend.auth.application.dto.response.RefreshResponse; | ||
| import team.wego.wegobackend.auth.application.dto.response.SignupResponse; | ||
| import team.wego.wegobackend.common.response.ApiResponse; | ||
| import team.wego.wegobackend.common.security.CustomUserDetails; | ||
|
|
||
| @Tag(name = "인증/인가 API", description = "인증 및 인가에 대한 API 리스트 \uD83D\uDC08") | ||
| public interface AuthControllerDocs { | ||
|
|
@@ -32,5 +34,11 @@ ResponseEntity<ApiResponse<LoginResponse>> login( | |
| @Operation(summary = "액세스 토큰 재발급", description = "리프레시 토큰 만료가 안되었을 경우 액세스 토큰을 재발급합니다.") | ||
| ResponseEntity<ApiResponse<RefreshResponse>> refresh( | ||
| @CookieValue(name = "refreshToken", required = false) String refreshToken); | ||
|
|
||
|
|
||
| @Operation(summary = "회원탈퇴", description = "DB Soft Delete + refreshCookie 제거") | ||
| ResponseEntity<ApiResponse<String>> withDraw( | ||
| @AuthenticationPrincipal CustomUserDetails userDetails, | ||
| HttpServletResponse response | ||
| ); | ||
|
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.