네트워크 통신 (Authorization code flow)
인가와 인증의 차이
카카오 로그인 구현
토큰 유무를 확인합니다.
2024-06-05 11:47:20896 [💬][MigrateManager.swift 23:17] -> ============================================================================================================
2024-06-05 11:47:20897 [💬][MigrateManager.swift 24:17] -> check migration...
2024-06-05 11:47:20897 [💬][MigrateManager.swift 45:17] -> ============================================================================================================
2024-06-05 11:47:20897 [💬][MigrateManager.swift 46:17] -> start migration sdk from v1 to v2....
2024-06-05 11:47:20898 [💬][MigrateManager.swift 70:21] -> first time sdk v2...
2024-06-05 11:47:20899 [💬][MigrateManager.swift 98:17] -> finished migration sdk...
로그인이 필요합니다.
토큰은 이것입니다. next()
2024-06-05 11:47:21069 [💬][AuthApiCommon.swift 49:17] -> >>>> [KakaoSDKCommon.SessionType.Auth: Alamofire.Session, KakaoSDKCommon.SessionType.RxAuthApi: Alamofire.Session, KakaoSDKCommon.SessionType.Api: Alamofire.Session, KakaoSDKCommon.SessionType.AuthApi: Alamofire.Session]
2024-06-05 11:47:21074 [‼️][AuthRequestRetrier.swift 40:25] -> request retrier:
error:requestAdaptationFailed(error: KakaoSDKCommon.SdkError.ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.TokenNotFound, errorMessage: Optional("authentication tokens not exist.")))
not api error -> pass through
2024-06-05 11:47:21074 [‼️][AuthRequestRetrier.swift 119:21] -> request retrier:
not handled error -> pass through
2024-06-05 11:47:21075 [‼️][Api.swift 151:29] -> response:
api error: ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.TokenNotFound, errorMessage: Optional("authentication tokens not exist."))
데이터가 왔습니다
카카오 로그인 메서드가 호출됩니다.