Skip to content
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

#32 회원 탈퇴 api #37

Merged
merged 6 commits into from
Sep 5, 2024
Merged

#32 회원 탈퇴 api #37

merged 6 commits into from
Sep 5, 2024

Conversation

min-0
Copy link
Member

@min-0 min-0 commented Sep 4, 2024

What is this PR? 🔍

애플 소셜 로그인 탈퇴 및 서버 자체 회원 정보 삭제

Changes 📝

애플 소셜 로그인 탈퇴 과정

  1. 클라이언트가 서버에 authorizationCode와 memberId를 포함한 탈퇴 요청
  2. 서버는 authorizationCode를 사용하여 Apple에서 accessToken을 받아옴
  3. 서버는 이 accessToken으로 Apple에 탈퇴 요청을 보냄
  4. Apple에서 성공 응답을 받으면, 서버는 자체 회원 탈퇴 처리
  5. 모든 과정이 성공적으로 완료되면 클라이언트에 OK 응답

Screenshot 📷

@min-0 min-0 added the enhancement New feature or request label Sep 4, 2024
@min-0 min-0 self-assigned this Sep 4, 2024
@min-0 min-0 linked an issue Sep 4, 2024 that may be closed by this pull request
2 tasks
@min-0
Copy link
Member Author

min-0 commented Sep 4, 2024

쿼리파일들은 제가 수정한게 없는데 .......... 왜 같이 File Change가 되었는지 의문 ............... 입니다 ?

Comment on lines +30 to +32
memberRepository.delete(member);
memberAttractionRepository.deleteById(memberId);
memberRegionRepository.deleteById(memberId);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기서 유저가 올린 Photo도 같이 삭제해줘야 하는 거 맞나요오 ?

Copy link
Member

@youngreal youngreal Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제 생각엔 유저가 기록했던 정보들을 다른유저가 볼수있는 기능이 있지않는한 삭제하는게 맞다는 생각이 들지만
이건 민영님이 저보단 팀전체에게 요구사항을 구체화 하시는게 가장 좋을것같아요
예를들면 회원 탈퇴하면 방문기록도 삭제할까요? 등의 질문이요.

추가적으로, 회원탈퇴 시 해당 회원의 RefreshToken도 DB에서 제거가 필요해보여요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 네 알겠습니다 우선 refresh token부터 지울게요!

Copy link
Member

@youngreal youngreal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

짧은 시간에 하시느라 정말 고생하셨습니다

Comment on lines +30 to +32
memberRepository.delete(member);
memberAttractionRepository.deleteById(memberId);
memberRegionRepository.deleteById(memberId);
Copy link
Member

@youngreal youngreal Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제 생각엔 유저가 기록했던 정보들을 다른유저가 볼수있는 기능이 있지않는한 삭제하는게 맞다는 생각이 들지만
이건 민영님이 저보단 팀전체에게 요구사항을 구체화 하시는게 가장 좋을것같아요
예를들면 회원 탈퇴하면 방문기록도 삭제할까요? 등의 질문이요.

추가적으로, 회원탈퇴 시 해당 회원의 RefreshToken도 DB에서 제거가 필요해보여요

Copy link
Member

@youngreal youngreal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

authorization code max:300
@min-0 min-0 mentioned this pull request Sep 5, 2024
MemberService 충돌 해결
@min-0 min-0 merged commit 1cbc7be into main Sep 5, 2024
1 check passed
@min-0 min-0 deleted the feat/#32 branch September 5, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

회원탈퇴 API
2 participants