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/#350 카카오로그인 구현완료 #351

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

hooni0918
Copy link
Member

🔗 연결된 이슈

📄 작업 내용

  • 카카오 로그인 원래대로 돌려놓기

👀 기타 더 이야기해볼 점

url Type에 있던 앱 키 정보를 privacy 로 이전하고 기존 키를 지웟는데 appdelegate와 scenedelegete에서 이전 앱키를 받아오는 키로 사용하고있어서 생긴 오류였습니다. 꽤나 오래 안되고 있었을텐데 테스트로그인하느라 못본 모양이네요 모쪼록 해결햇습니다.

@hooni0918 hooni0918 self-assigned this Aug 31, 2024
Copy link
Contributor

@JinUng41 JinUng41 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 +42 to 46
if let url = URLContexts.first?.url {
if (AuthApi.isKakaoTalkLoginUrl(url)) {
_ = AuthController.handleOpenUrl(url: url)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

개인적인 의견입니다만, 저는 뎁스를 좀 지양하는 편이라 아래와 같이 표현도 가능해 보입니다.

// guard 문 사용
guard let url = URLContexts.first?.url, AuthApi.isKakaoTalkLoginUrl(url) else {
    return
}
_ = AuthController.handleOpenUrl(url: url)

// if 문 사용
if let url = URLContexts.first?.url, AuthApi.isKakaoTalkLoginUrl(url) {
    _ = AuthController.handleOpenUrl(url: url)
}

Comment on lines +25 to 26
KakaoSDK.initSDK(appKey: kakaoAppKey, loggingEnable: true)
print("Kakao SDK initialized with app key: \(kakaoAppKey)")
Copy link
Contributor

Choose a reason for hiding this comment

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

성공했을 때는 print 디버깅은 필요없을 것 같네요.

Comment on lines 112 to 114
if let error = error {
print("Error fetching FCM registration token: \(error)")
} else if let token = token {
Copy link
Contributor

Choose a reason for hiding this comment

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

아래와 같이 좀 더 간결하게 표현 가능합니다. (Swift 5.7부터 인걸로 알고 있어요.)

if let error {

} else if let token {

Copy link
Member

@youz2me youz2me left a comment

Choose a reason for hiding this comment

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

PR 제목이랑 라벨 추가해주세요! 고생하셨습니다~

Copy link
Member

@mmaybei mmaybei left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

@hooni0918 hooni0918 linked an issue Sep 2, 2024 that may be closed by this pull request
1 task
@hooni0918 hooni0918 merged commit e960117 into suyeon Sep 2, 2024
@youz2me youz2me deleted the hotfix/#350-kakaoSolve branch September 2, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[hotfix] 카카오로그인 안됨 수정
4 participants