-
Notifications
You must be signed in to change notification settings - Fork 2
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
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.
고생하셨습니다! 빠른 수정 좋아요~
if let url = URLContexts.first?.url { | ||
if (AuthApi.isKakaoTalkLoginUrl(url)) { | ||
_ = AuthController.handleOpenUrl(url: url) | ||
} | ||
} |
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.
개인적인 의견입니다만, 저는 뎁스를 좀 지양하는 편이라 아래와 같이 표현도 가능해 보입니다.
// 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)
}
KakaoSDK.initSDK(appKey: kakaoAppKey, loggingEnable: true) | ||
print("Kakao SDK initialized with app key: \(kakaoAppKey)") |
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.
성공했을 때는 print 디버깅은 필요없을 것 같네요.
if let error = error { | ||
print("Error fetching FCM registration token: \(error)") | ||
} else if let token = token { |
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.
아래와 같이 좀 더 간결하게 표현 가능합니다. (Swift 5.7부터 인걸로 알고 있어요.)
if let error {
} else if let token {
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 제목이랑 라벨 추가해주세요! 고생하셨습니다~
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.
수고하셨습니다!
🔗 연결된 이슈
📄 작업 내용
👀 기타 더 이야기해볼 점
url Type에 있던 앱 키 정보를 privacy 로 이전하고 기존 키를 지웟는데 appdelegate와 scenedelegete에서 이전 앱키를 받아오는 키로 사용하고있어서 생긴 오류였습니다. 꽤나 오래 안되고 있었을텐데 테스트로그인하느라 못본 모양이네요 모쪼록 해결햇습니다.