【发布时间】: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