linkAndRetrieveData未在iOS中与Facebook合作进行Firebase身份验证
首先我打电话给-linkAndRetrieveData未在iOS中与Facebook合作进行Firebase身份验证,ios,swift,firebase,firebase-authentication,facebook-authentication,Ios,Swift,Firebase,Firebase Authentication,Facebook Authentication,首先我打电话给- FBSDKLoginManager().logIn(withReadPermissions: ["public_profile", "email"], from: self) 论成功获取凭证- let credential = FacebookAuthProvider.credential(withAccessToken: FBSDKAccessToken.current().tokenString) 然后将凭证传递给linkAndRetrieveData- Auth.au
FBSDKLoginManager().logIn(withReadPermissions: ["public_profile", "email"], from: self)
论成功获取凭证-
let credential = FacebookAuthProvider.credential(withAccessToken: FBSDKAccessToken.current().tokenString)
然后将凭证传递给linkAndRetrieveData-
Auth.auth().currentUser?.linkAndRetrieveData(with: credential)
获取此错误,显示“缺少\u ID\u令牌”——
{
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
我做错了什么 Firebase认证版本5.4.1应该很快就能修复。见以下问题: