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

[Feat] #430 - 마이페이지 로그아웃, 애플/카카오 회원탈퇴 및 서버연결 #440

Merged
merged 3 commits into from
Mar 29, 2022

Conversation

hyun99999
Copy link
Member

🔥Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

  • 로그아웃 서버통신 성공

스크린샷 2022-03-29 오후 12 33 57

  • 카카오 회원탈퇴 api 연결
  • 애플의 경우 별도의 회원탈퇴 기능을 제공하지 않고, 기기의 설정에서 연결된 앱을 해제할 수 있도록 하고 있어요!

🚨참고 사항

📸 스크린샷

기능 스크린샷
카카오회원탈퇴

📟 관련 이슈

@hyun99999 hyun99999 added Feat 새로운 기능 구현 👼타락pOwEr천사현규 크로아서버 환영요 labels Mar 29, 2022
@hyun99999 hyun99999 requested review from L-j-h-c and yangsubinn March 29, 2022 03:45
@hyun99999 hyun99999 self-assigned this Mar 29, 2022
Copy link
Member

@yangsubinn yangsubinn 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 +125 to +133
private func unlink() {
UserDefaults.standard.removeObject(forKey: Const.UserDefaultsKey.accessToken)
UserDefaults.standard.removeObject(forKey: Const.UserDefaultsKey.userID)
UserDefaults.standard.removeObject(forKey: Const.UserDefaultsKey.isAppleLogin)

guard let loginVC = UIStoryboard(name: Const.Storyboard.Name.login, bundle: nil).instantiateViewController(withIdentifier: Const.ViewController.Identifier.login) as? LoginVC else { return }
loginVC.modalPresentationStyle = .overFullScreen
loginVC.modalTransitionStyle = .crossDissolve
present(loginVC, animated: true, completion: nil)
Copy link
Member

Choose a reason for hiding this comment

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

오호 애플은 이렇게 연결해주는군여.. 오케케..

Copy link
Member Author

Choose a reason for hiding this comment

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

애플이 이렇게 연결한다기보다는 unlink 메서드에 Userdefaults 삭제해주구요! 로그인뷰컨으로 이동시켜줬습니당! 왜냐면 애플은 카카오와같이 unlink api 가 있는게 아니라 앱내에서 서비스연결끊기를 지원하지 않아용

Copy link
Member

@L-j-h-c L-j-h-c left a comment

Choose a reason for hiding this comment

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

감삼당! 오늘 너무 바빠서 나중에 다시 코드 읽어볼게염...

@hyun99999 hyun99999 merged commit 2a64bee into TeamSparker:develop Mar 29, 2022
@hyun99999 hyun99999 deleted the feature/#430 branch March 29, 2022 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 👼타락pOwEr천사현규 크로아서버 환영요
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 마이페이지 로그아웃, 애플/카카오 회원탈퇴 및 서버연결
3 participants