카카오로그인이 안됩니다

앱 아이디는 964382 909444 입니다.

카카오 앱으로 로그인 시 UserApi.shared.loginWithKakaoAccount 이후 아무런 값을 리턴해 주지 않습니다.
print(oauthToken)
print(error)
둘다 아무 값도 출력되지 않습니다.
카카오톡 앱이 열리고 비밀번호 입력 후 다시 원래 앱으로 돌아오는데 아무런 반응이 없다가 앱이 꺼지고 다시 실행이 됩니다.

안녕하세요.

구현하신 코드와, 콜백까지 로그 제공 부탁드립니다.

if UserApi.isKakaoTalkLoginAvailable() {
                    self.indicator.startAnimating()
                    UserApi.shared.loginWithKakaoTalk { oauthToken, error in
                        if let error = error {
                            let alert = UIAlertController(title: error.localizedDescription, message: nil, preferredStyle: .alert)
                            let ok = UIAlertAction(title: "확인", style: .default)
                            alert.addAction(ok)
                            self.present(alert, animated: true)
                        } else {
                            guard let token = oauthToken?.accessToken else { return }
                            self.loginWithKakao(token: token)
                        }
                        self.indicator.stopAnimating()
                    }
                } else {
                    UserApi.shared.loginWithKakaoAccount { oauthToken, error in
                        if let error = error {
                            print(error.localizedDescription)
                            let alert = UIAlertController(title: "다시 시도해 주세요.", message: nil, preferredStyle: .alert)
                            let ok = UIAlertAction(title: "확인", style: .default)
                            alert.addAction(ok)
                            self.present(alert, animated: true)
                        } else {
                            guard let token = oauthToken?.accessToken else { return }
                            self.loginWithKakao(token: token)
                        }
                    }
                }
Device Token: 9415045bd43659bb698d007dec3b65d6a9d6426e28d64c78e2894f0b2df653f6
2023-11-03 12:36:08956 [💬][MigrateManager.swift 21:17] -> ============================================================================================================
2023-11-03 12:36:08958 [💬][MigrateManager.swift 22:17] -> check migration... 
2023-11-03 12:36:08959 [💬][MigrateManager.swift 43:17] -> ============================================================================================================
2023-11-03 12:36:08959 [💬][MigrateManager.swift 44:17] -> start migration sdk from v1 to v2.... 
2023-11-03 12:36:08960 [💬][MigrateManager.swift 68:21] ->  first time sdk v2...
2023-11-03 12:36:08962 [💬][MigrateManager.swift 96:17] -> finished migration sdk...
2023-11-03 12:36:08975 [💬][AuthApiCommon.swift 47:17] -> >>>> [KakaoSDKCommon.SessionType.AuthApi: Alamofire.Session, KakaoSDKCommon.SessionType.RxAuthApi: Alamofire.Session, KakaoSDKCommon.SessionType.Auth: Alamofire.Session, KakaoSDKCommon.SessionType.Api: Alamofire.Session]
2023-11-03 12:36:08976 [💬][TokenRefresher.swift 27:17] -> [TokenRefresher] didBecomActiveNotification observer for ATI added.
2023-11-03 12:36:08978 [💬][AuthController.swift 374:21] -> code_verifier: DjWJ2AX/dTniHLYXPdRLVadY4+LyzqOuPuUPSb/tztvk03fTxVMFpL9Q1f41bVkNOpGBrWXu2ebRkrDOJiyF7Q
2023-11-03 12:36:08978 [💬][AuthController.swift 377:25] -> code_challenge: a83Vm3lEiloOHVSB4eIZC5_x_yRSKXz_OpOH5Q1gvBU
2023-11-03 12:36:09116 [ℹ️][AuthController.swift 144:25] -> 카카오톡 실행: https://talk-apps.kakao.com/scheme/kakaokompassauth%3A%2F%2Fauthorize%3Fresponse_type=code&redirect_uri=kakao34ef8822f9d1a1521447df63dc9826eb%3A%2F%2Foauth&headers=%257B%2522KA%2522%3A%2522sdk%255C%2F2.18.0%2520sdk_type%255C%2Fswift%2520os%255C%2Fios-17.1%2520lang%255C%2Fko-CA%2520res%255C%2F390x844%2520device%255C%2FiPhone%2520origin%255C%2Fcom.dalbitsoft.coffee.dev%2520app_ver%255C%2F1.0.9%2522%257D&client_id=34ef8822f9d1a1521447df63dc9826eb&params=%257B%2522code_challenge%2522%3A%2522a83Vm3lEiloOHVSB4eIZC5_x_yRSKXz_OpOH5Q1gvBU%2522,%2522code_challenge_method%2522%3A%2522S256%2522%257D

제공해 주신 로그는 loginWithKakaoTalk 사용 로그 입니다.

카카오톡 실행 후, 로그가 없는 것으로 보아 톡에서 앱으로 돌아오지 못하는 것으로 보입니다.

아래 카카오톡으로 로그인을 위한 설정 구현이 완료되어 있으신지 확인 부탁드립니다.

iOS | Kakao Developers iOS

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
        if AuthApi.isKakaoTalkLoginUrl(url) {
            return AuthController.handleOpenUrl(url: url)
        } else if GIDSignIn.sharedInstance.handle(url) {
            return true
        } else if let scheme = url.scheme, scheme.contains("naver") {
            NaverThirdPartyLoginConnection.getSharedInstance().application(app, open: url, options: options)
            return true
        }
        return false
    }

설정 완료한 상태입니다

SDK 초기화에 사용된 앱 키와, URL Types에 설정한 앱 키 확인 부탁드립니다.

#if DEBUG
        KakaoSDK.initSDK(appKey: "34ef8822f9d1a1521447df63dc9826eb")
        #else
        KakaoSDK.initSDK(appKey: "2a1495d8ceb46a6dc5795fcd445dc1f9")
        #endif

앱 빌드 시, KakaoDev 에 설정된 URL Schemes 반영되지 않는 것으로 보입니다.
identifier 값 제거된것 하나만 등록하여 확인 부탁드립니다.

삭제하고 실행한 결과

2023-11-03 18:49:59389 [💬][MigrateManager.swift 21:17] -> ============================================================================================================
2023-11-03 18:49:59392 [💬][MigrateManager.swift 22:17] -> check migration... 
2023-11-03 18:49:59393 [💬][MigrateManager.swift 24:21] ->  pass migration... 
2023-11-03 18:49:59393 [💬][MigrateManager.swift 25:21] ->  used sdk version:2.18.0
2023-11-03 18:49:59407 [💬][AuthApiCommon.swift 47:17] -> >>>> [KakaoSDKCommon.SessionType.AuthApi: Alamofire.Session, KakaoSDKCommon.SessionType.Api: Alamofire.Session, KakaoSDKCommon.SessionType.RxAuthApi: Alamofire.Session, KakaoSDKCommon.SessionType.Auth: Alamofire.Session]
2023-11-03 18:49:59407 [💬][TokenRefresher.swift 27:17] -> [TokenRefresher] didBecomActiveNotification observer for ATI added.
2023-11-03 18:49:59409 [💬][AuthController.swift 374:21] -> code_verifier: u+jGOBHuRdiiWUbVEO0PzMD7b4HBHFX+hTykOzH+NIpSKDU0duMS1ZencevovNsWmWJVdV5qpHXm4rJwu/77Ow
2023-11-03 18:49:59409 [💬][AuthController.swift 377:25] -> code_challenge: -1ZDdxixil1ZQJx1gty7uW-87VdD7FvwSW_m0L0R_5g
2023-11-03 18:49:59522 [ℹ️][AuthController.swift 144:25] -> 카카오톡 실행: https://talk-apps.kakao.com/scheme/kakaokompassauth%3A%2F%2Fauthorize%3Fresponse_type=code&client_id=34ef8822f9d1a1521447df63dc9826eb&headers=%257B%2522KA%2522%3A%2522sdk%255C%2F2.18.0%2520sdk_type%255C%2Fswift%2520os%255C%2Fios-17.1%2520lang%255C%2Fko-CA%2520res%255C%2F390x844%2520device%255C%2FiPhone%2520origin%255C%2Fcom.dalbitsoft.coffee.dev%2520app_ver%255C%2F1.0.9%2522%257D&redirect_uri=kakao34ef8822f9d1a1521447df63dc9826eb%3A%2F%2Foauth&params=%257B%2522code_challenge%2522%3A%2522-1ZDdxixil1ZQJx1gty7uW-87VdD7FvwSW_m0L0R_5g%2522,%2522code_challenge_method%2522%3A%2522S256%2522%257D

여전히 처음 상태와 똑같습니다.

설정문제로 보입니다.
info.plist 파일 전달 부탁드립니다.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>gocafein</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>gocafein</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>KakaoPro</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>kakao2a1495d8ceb46a6dc5795fcd445dc1f9</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>com.googleusercontent.apps.716817137991-ssgqseir5drfokku8ieri1noc28eeb7c</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>KakaoDev</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>kakao34ef8822f9d1a1521447df63dc9826eb</string>
			</array>
		</dict>
	</array>
	<key>ITSAppUsesNonExemptEncryption</key>
	<false/>
	<key>KAKAO_APP_KEY</key>
	<string>102b1bef29d688266f7c4130b246326d</string>
	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>kakaomap</string>
		<string>nmap</string>
		<string>comgooglemaps</string>
		<string>kakaokompassauth</string>
		<string>kakaolink</string>
		<string>naversearchapp</string>
		<string>naversearchthirdlogin</string>
	</array>
	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
	<key>UIApplicationSceneManifest</key>
	<dict>
		<key>UIApplicationSupportsMultipleScenes</key>
		<false/>
		<key>UISceneConfigurations</key>
		<dict>
			<key>UIWindowSceneSessionRoleApplication</key>
			<array>
				<dict>
					<key>UISceneConfigurationName</key>
					<string>Default Configuration</string>
					<key>UISceneDelegateClassName</key>
					<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
				</dict>
			</array>
		</dict>
	</dict>
</dict>
</plist>

<string>KakaoDev</string> 제거 부탁드립니다.

Device Token: 9415045bd43659bb698d007dec3b65d6a9d6426e28d64c78e2894f0b2df653f6
2023-11-03 19:09:49772 [💬][MigrateManager.swift 21:17] -> ============================================================================================================
2023-11-03 19:09:49775 [💬][MigrateManager.swift 22:17] -> check migration... 
2023-11-03 19:09:49776 [💬][MigrateManager.swift 24:21] ->  pass migration... 
2023-11-03 19:09:49777 [💬][MigrateManager.swift 25:21] ->  used sdk version:2.18.0
2023-11-03 19:09:49791 [💬][AuthApiCommon.swift 47:17] -> >>>> [KakaoSDKCommon.SessionType.Api: Alamofire.Session, KakaoSDKCommon.SessionType.RxAuthApi: Alamofire.Session, KakaoSDKCommon.SessionType.Auth: Alamofire.Session, KakaoSDKCommon.SessionType.AuthApi: Alamofire.Session]
2023-11-03 19:09:49791 [💬][TokenRefresher.swift 27:17] -> [TokenRefresher] didBecomActiveNotification observer for ATI added.
2023-11-03 19:09:49793 [💬][AuthController.swift 374:21] -> code_verifier: 8RMZgatYfw0iLObjKbgAfC6/YIby+dPb8LO+e3YwMCBro6MrYu3A5SSC4ObGOJGKdwS+q60iSAdEzGwz5cQ/gQ
2023-11-03 19:09:49793 [💬][AuthController.swift 377:25] -> code_challenge: azt1vqWuWfb3GbkfoyCAaFaj6c3wBVqZvHLSreq0G3k
2023-11-03 19:09:49917 [ℹ️][AuthController.swift 144:25] -> 카카오톡 실행: https://talk-apps.kakao.com/scheme/kakaokompassauth%3A%2F%2Fauthorize%3Fclient_id=34ef8822f9d1a1521447df63dc9826eb&headers=%257B%2522KA%2522%3A%2522sdk%255C%2F2.18.0%2520sdk_type%255C%2Fswift%2520os%255C%2Fios-17.1%2520lang%255C%2Fko-CA%2520res%255C%2F390x844%2520device%255C%2FiPhone%2520origin%255C%2Fcom.dalbitsoft.coffee.dev%2520app_ver%255C%2F1.0.9%2522%257D&response_type=code&redirect_uri=kakao34ef8822f9d1a1521447df63dc9826eb%3A%2F%2Foauth&params=%257B%2522code_challenge_method%2522%3A%2522S256%2522,%2522code_challenge%2522%3A%2522azt1vqWuWfb3GbkfoyCAaFaj6c3wBVqZvHLSreq0G3k%2522%257D
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
	<key>CFBundleDisplayName</key>
	<string>dev고카페인</string>
	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>gocafein</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>gocafein</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>kakaoPro</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>kakao2a1495d8ceb46a6dc5795fcd445dc1f9</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>com.googleusercontent.apps.716817137991-ssgqseir5drfokku8ieri1noc28eeb7c</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string></string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>kakao34ef8822f9d1a1521447df63dc9826eb</string>
			</array>
		</dict>
	</array>
	<key>ITSAppUsesNonExemptEncryption</key>
	<false/>
	<key>KAKAO_APP_KEY</key>
	<string>102b1bef29d688266f7c4130b246326d</string>
	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>kakaomap</string>
		<string>nmap</string>
		<string>comgooglemaps</string>
		<string>kakaokompassauth</string>
		<string>kakaolink</string>
		<string>naversearchapp</string>
		<string>naversearchthirdlogin</string>
	</array>
	<key>UIApplicationSceneManifest</key>
	<dict>
		<key>UIApplicationSupportsMultipleScenes</key>
		<false/>
		<key>UISceneConfigurations</key>
		<dict>
			<key>UIWindowSceneSessionRoleApplication</key>
			<array>
				<dict>
					<key>UISceneConfigurationName</key>
					<string>Default Configuration</string>
					<key>UISceneDelegateClassName</key>
					<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
				</dict>
			</array>
		</dict>
	</dict>
</dict>
</plist>

제거하고 실행한 결과가 9번째 코멘트였습니다.
참고로 확인은 디버그 모드로 진행 중입니다

안녕하세요.

달리 설정은 문제 없어 보입니다.
앱으로 돌아온 후, 앱이 꺼진다고 하셨기에 크래시 로그가 있을것 같은데요 확인 부탁드리며

카카오톡 로그인 후, 앱으로 돌아오지 못하는 경우는 아래 샘플 코드와 비교 확인 부탁드립니다.

다운로드 | Kakao Developers 다운로드

2023-11-06 16:39:31937 [💬][MigrateManager.swift 21:17] -> ============================================================================================================
2023-11-06 16:39:31944 [💬][MigrateManager.swift 22:17] -> check migration... 
2023-11-06 16:39:31945 [💬][MigrateManager.swift 43:17] -> ============================================================================================================
2023-11-06 16:39:31946 [💬][MigrateManager.swift 44:17] -> start migration sdk from v1 to v2.... 
2023-11-06 16:39:31946 [💬][MigrateManager.swift 68:21] ->  first time sdk v2...
2023-11-06 16:39:31948 [💬][MigrateManager.swift 96:17] -> finished migration sdk...
2023-11-06 16:39:31972 [💬][AuthApiCommon.swift 47:17] -> >>>> [KakaoSDKCommon.SessionType.Auth: Alamofire.Session, KakaoSDKCommon.SessionType.AuthApi: Alamofire.Session, KakaoSDKCommon.SessionType.Api: Alamofire.Session, KakaoSDKCommon.SessionType.RxAuthApi: Alamofire.Session]
2023-11-06 16:39:31972 [💬][TokenRefresher.swift 27:17] -> [TokenRefresher] didBecomActiveNotification observer for ATI added.
2023-11-06 16:39:31974 [💬][AuthController.swift 374:21] -> code_verifier: RvCc4lMePdMrDRtvuWtWS78oDYU5dZxqP/Di9rXLgOFeydHiMQ8x9yjYMZKuYpp7w13FH73kVChxsaDWoUBZBQ
2023-11-06 16:39:31974 [💬][AuthController.swift 377:25] -> code_challenge: IXAGtvDSXRxAcOcJjMGYkv7KAJhSjxb9QfY4e0gM3w4
2023-11-06 16:39:32135 [ℹ️][AuthController.swift 144:25] -> 카카오톡 실행: https://talk-apps.kakao.com/scheme/kakaokompassauth%3A%2F%2Fauthorize%3Fheaders=%257B%2522KA%2522%3A%2522sdk%255C%2F2.18.0%2520sdk_type%255C%2Fswift%2520os%255C%2Fios-17.1%2520lang%255C%2Fko-CA%2520res%255C%2F390x844%2520device%255C%2FiPhone%2520origin%255C%2Fcom.dalbitsoft.coffee.dev%2520app_ver%255C%2F1.1.0%2522%257D&redirect_uri=kakao34ef8822f9d1a1521447df63dc9826eb%3A%2F%2Foauth&params=%257B%2522code_challenge%2522%3A%2522IXAGtvDSXRxAcOcJjMGYkv7KAJhSjxb9QfY4e0gM3w4%2522,%2522code_challenge_method%2522%3A%2522S256%2522%257D&response_type=code&client_id=34ef8822f9d1a1521447df63dc9826eb

다시 확인해 보니 이 이후 앱이 종료되지 않아 background로 보내니

Failed to open URL gocafein://thirdPartyLoginResult?version=2&code=1: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.dalbitsoft.coffee.dev" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x2820bccf0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 "Application com.dalbitsoft.coffee.dev is neither visible nor entitled, so may not perform un-trusted user actions." UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Application com.dalbitsoft.coffee.dev is neither visible nor entitled, so may not perform un-trusted user actions.}}, NSLocalizedDescription=The request to open "com.dalbitsoft.coffee.dev" failed., FBSOpenApplicationRequestID=0x1d1a, NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: Security ("Application com.dalbitsoft.coffee.dev is neither visible nor entitled, so may not perform un-trusted user actions").}

2023-11-06 16:40:41527 [💬][Api.swift 127:29] -> ===================================================================================================
2023-11-06 16:40:41527 [💬][Api.swift 128:29] -> session: 
 type: Auth


2023-11-06 16:40:41528 [‼️][AuthRequestRetrier.swift 38:25] -> request retrier:
 error:requestAdaptationFailed(error: KakaoSDKCommon.SdkError.ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.TokenNotFound, errorMessage: Optional("authentication tokens not exist.")))
 not api error -> pass through


2023-11-06 16:40:41528 [‼️][AuthRequestRetrier.swift 115:21] -> request retrier:
 not handled error -> pass through 


2023-11-06 16:40:41530 [ℹ️][Api.swift 129:29] -> request: 
 method: HTTPMethod(rawValue: "POST")
 url:https://kauth.kakao.com/oauth/token
 headers:nil
 parameters: Optional(["ios_bundle_id": "com.dalbitsoft.coffee.dev", "redirect_uri": "kakao34ef8822f9d1a1521447df63dc9826eb://oauth", "code": "GJbX15tMMrCRJ3qzmcpoLGHnLOX_D4iGsmjJkBYRRhb65Ks2qCPLW38o3-AKKiVQAAABi6OSlc8p9hBbJybEWQ", "grant_type": "authorization_code", "code_verifier": "RvCc4lMePdMrDRtvuWtWS78oDYU5dZxqP/Di9rXLgOFeydHiMQ8x9yjYMZKuYpp7w13FH73kVChxsaDWoUBZBQ", "client_id": "34ef8822f9d1a1521447df63dc9826eb"]) 


2023-11-06 16:40:41530 [ℹ️][Api.swift 130:41] -> response:
 Optional({
    "access_token" = YS31GJqac2tS8oAuXb6Ainj0xJ5EDHUozlsKKiWQAAABi6OTmtfUNEQ5evY1pg;
    "expires_in" = 43199;
    "id_token" = "eyJraWQiOiI5ZjI1MmRhZGQ1ZjIzM2Y5M2QyZmE1MjhkMTJmZWEiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIzNGVmODgyMmY5ZDFhMTUyMTQ0N2RmNjNkYzk4MjZlYiIsInN1YiI6IjMwMDU3NTMwOTUiLCJhdXRoX3RpbWUiOjE2OTkyNTY0NDEsImlzcyI6Imh0dHBzOi8va2F1dGgua2FrYW8uY29tIiwiZXhwIjoxNjk5Mjk5NjQxLCJpYXQiOjE2OTkyNTY0NDEsImVtYWlsIjoiamloeWVvbi55QGtha2FvLmNvbSJ9.UQmdY7WaJebj5iQE2KM8m1dsLTbkT34Jn038-U23QVkzAu_duk5G0gV2e_ClPyvbQHhNo7FS8aZzaLO3wti30aiO7EluTqbMhNa-Hcg5wQlV7KXP5Z6Csdap5z6CFTIpq2aerGrdb7rFALTBhDV1ST3lNNyQlVD7PVu-SnHeEKt2eCrREJo_u-WehYISqpmzvKtzQfmC8-CO5RKd9qSEXvr4bqpF68l8q4B5h_JBwtKS1rvU60NYN-gGBJp1UUtSzcW8noI2oZ7BThpXmI6D2QAYqIxGDiPM6Y9AH7bmAKHz78efU-GbKGQv2JFoutuiROXdyVgQvkMoqKmFeL6Cfw";
    "refresh_token" = "75B8d_BMAG5SVc9Tt0m_l2m3XnkY9HP0qA0KKiWQAAABi6OTmtTUNEQ5evY1pg";
    "refresh_token_expires_in" = 5183999;
    scope = "account_email openid";
    "token_type" = bearer;
})


2023-11-06 16:40:41584 [‼️][Api.swift 145:29] -> response:
 api error: ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.TokenNotFound, errorMessage: Optional("authentication tokens not exist."))
2023-11-06 16:40:41585 [‼️][TokenRefresher.swift 69:29] -> ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.TokenNotFound, errorMessage: Optional("authentication tokens not exist."))
2023-11-06 16:40:41585 [💬][TokenRefresher.swift 41:25] -> [TokenRefresher] ATI call time updated
2023-11-06 16:40:41589 [🔬][Properties.swift 23:21] -> save-plain : {length = 947, bytes = 0x7b226163 63657373 546f6b65 6e223a22 ... 654c3643 6677227d }
2023-11-06 16:40:41592 [🔬][Properties.swift 25:21] -> save-crypted : {length = 960, bytes = 0x878e7b7f 96df7f70 45aa86c0 c6480476 ... f48cb792 6771f722 }

해당 로그 이후 앱을 다시 foreground로 불러오니 로그인이 되었습니다.

로그확인후 토큰 유무 체크가 필요한가 싶어 아래 코드로 변경하였습니다.

if AuthApi.hasToken() {
                    UserApi.shared.accessTokenInfo { _, error in
                        if let error = error {
                            if let sdkError = error as? SdkError, sdkError.isInvalidTokenError() == true {
                                // 로그인 필요
                                self.openKakoToLogin()
                            } else {
                                let alert = UIAlertController(title: error.localizedDescription, message: nil, preferredStyle: .alert)
                                let ok = UIAlertAction(title: "확인", style: .default)
                                alert.addAction(ok)
                                self.present(alert, animated: true)
                            }
                        }
                    }
                } else {
                    self.openKakoToLogin()
                }



func openKakoToLogin() {
        if UserApi.isKakaoTalkLoginAvailable() {
            self.indicator.startAnimating()
            UserApi.shared.loginWithKakaoTalk { oauthToken, error in
                if let error = error {
                    let alert = UIAlertController(title: error.localizedDescription, message: nil, preferredStyle: .alert)
                    let ok = UIAlertAction(title: "확인", style: .default)
                    alert.addAction(ok)
                    self.present(alert, animated: true)
                } else {
                    guard let token = oauthToken?.accessToken else { return }
                    self.loginWithKakao(token: token)
                }
                self.indicator.stopAnimating()
            }
        } else {
            UserApi.shared.loginWithKakaoAccount { oauthToken, error in
                if let error = error {
                    print(error.localizedDescription)
                    let alert = UIAlertController(title: "다시 시도해 주세요.", message: nil, preferredStyle: .alert)
                    let ok = UIAlertAction(title: "확인", style: .default)
                    alert.addAction(ok)
                    self.present(alert, animated: true)
                } else {
                    guard let token = oauthToken?.accessToken else { return }
                    self.loginWithKakao(token: token)
                }
            }
        }
    }

해결 방법 제시 부탁드립니다

안녕하세요.
Deployment target이 어떻게 되시나요?

ios 13.0입니다

UISceneDelegate가 사용되도록 설정되어 있지만, AppDelegate에 AuthController.handleOpenUrl 구현하신것으로 보입니다. SceneDelegate에 구현하셨을까요?

func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
        if let url = URLContexts.first?.url {
            GIDSignIn.sharedInstance.handle(url)
            NaverThirdPartyLoginConnection.getSharedInstance().receiveAccessToken(URLContexts.first?.url)
            if AuthApi.isKakaoTalkLoginUrl(url) {
                _ = AuthController.handleOpenUrl(url: url)
            }
        }
    }

네 구현되어있습니다