-
Notifications
You must be signed in to change notification settings - Fork 6
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
소셜 로그인한 회원 탈퇴 기능 구현 #582
소셜 로그인한 회원 탈퇴 기능 구현 #582
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
토큰 무효화를 하지 않아도 앱 승인이 가능하다면
이대로 진행해도 괜찮을 것 같아요~👍
@@ -31,4 +32,10 @@ public ResponseEntity<RestResponse<MemberFindResponse>> findMyInfo( | |||
|
|||
return ResponseEntity.ok().body(new RestResponse<>(memberFindResponse)); | |||
} | |||
|
|||
@DeleteMapping("/delete") | |||
public ResponseEntity<Void> removeMember(@LoginDarakbangMember DarakbangMember member) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분 나중에 헷갈리더라구요 ㅠㅠ
public ResponseEntity<Void> removeMember(@LoginDarakbangMember DarakbangMember member) { | |
public ResponseEntity<Void> removeMember(@LoginDarakbangMember DarakbangMember darakbangMember) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생했습니다~ 추후에 물리적 삭제가 아니라 논리적 삭제를 고려하는 등의 논의가 한번 있었으면 좋겠습니다!
PR의 목적이 무엇인가요?
이슈 ID는 무엇인가요?
설명
회원 탈퇴는 회원 정보를 테이블에서 제거하는 것으로 구현합니다.
AccessToken이 있더라도 회원 테이블에서 조회가 불가능하다면 다시 로그인할 수 없습니다.
질문 혹은 공유 사항 (Optional)
만약 회원 탈퇴 후 재로그인한다면 현재 구현으로는
이메일 수집 동의
처럼 체크하는 화면이 뜨지 않을 것입니다.이를 해결하기 위해서는 애플 서버에 토큰을 무효화하는 API를 보내야하는데, 우선은 우리 서버 단에서만 회원 탈퇴 시키는 것으로 구현하겠습니다.