【问题标题】:linkAndRetrieveData not working with Facebook for Firebase Authentication in iOSlinkAndRetrieveData 在 iOS 中无法与 Facebook 一起使用 Firebase 身份验证
【发布时间】:2019-03-10 19:28:54
【问题描述】:

首先我要打电话 -

FBSDKLoginManager().logIn(withReadPermissions: ["public_profile", "email"], from: self)

成功获得证书 -

let credential = FacebookAuthProvider.credential(withAccessToken: FBSDKAccessToken.current().tokenString)

然后将凭证传递给linkAndRetrieveData -

Auth.auth().currentUser?.linkAndRetrieveData(with: credential)

收到此错误,显示“MISSING_ID_TOKEN” -

{
    FIRAuthErrorUserInfoNameKey = "ERROR_INTERNAL_ERROR";
    NSLocalizedDescription = "An internal error has occurred, print and inspect the error details for more information.";
    NSUnderlyingError = "Error Domain=FIRAuthInternalErrorDomain Code=3 \"(null)\" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={\n    code = 400;\n    message = \"MISSING_ID_TOKEN\";\n    status = \"INVALID_ARGUMENT\";\n}}";
    "error_name" = "ERROR_INTERNAL_ERROR";
}

它适用于 -

Auth.auth().signInAndRetrieveData

我在这里做错了什么?

【问题讨论】:

    标签: ios swift firebase firebase-authentication facebook-authentication


    【解决方案1】:

    Firebase 身份验证版本 5.4.1 应该很快会修复它。请参阅以下问题:

    https://github.com/firebase/firebase-ios-sdk/issues/2522

    【讨论】:

      猜你喜欢
      • 2018-07-19
      • 1970-01-01
      • 1970-01-01
      • 2019-05-30
      • 2017-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-05
      相关资源
      最近更新 更多