카카오 로그인 기능 추가

This commit is contained in:
Yu Sung
2026-01-27 16:18:54 +09:00
parent b522b50dee
commit 5e209662d8
11 changed files with 660 additions and 532 deletions
+8
View File
@@ -11,6 +11,8 @@ import Kingfisher
import FBSDKCoreKit
import AppsFlyerLib
import GoogleSignIn
import KakaoSDKCommon
import KakaoSDKAuth
@main
struct SodaLiveApp: App {
@@ -26,6 +28,7 @@ struct SodaLiveApp: App {
configureImageCache()
// 앱 시작 직후, 초기 네트워크 요청도 올바른 언어 헤더를 갖도록 동기 초기화
LanguageHeaderProvider.initialize()
KakaoSDK.initSDK(appKey: KAKAO_APP_KEY)
}
private func configureImageCache() {
@@ -68,6 +71,11 @@ struct SodaLiveApp: App {
}
.onOpenURL { url in
DEBUG_LOG("I have received a URL through a custom scheme! \(url.absoluteString)")
if KakaoSDKAuth.AuthApi.isKakaoTalkLoginUrl(url) {
_ = AuthController.handleOpenUrl(url: url)
return
}
if let comps = URLComponents(url: url, resolvingAgainstBaseURL: false),
url.scheme?.lowercased() == APPSCHEME.lowercased(),