Firebase身份验证标识符从Facebook登录中存储的价值如果用户未注册电子邮件但使用电话号码。我的应用程序提供Facebook登录,但现在当用户继续使用Facebook登录时,我的firebase auth将电子邮件地址存储为标识符,但是当有人通过Facebook登录我的应用程序登录时已在Facebook登记了电话号码,那么我的firebase auth正在存储标识符中的空值。那么我应该怎么做才能将来自Facebook的用户电话号码作为身份识别者或facebook id作为标识符存储,例如id_abcd@facebook.com
答案 0 :(得分:3)
Firebase Auth backend will use the corresponding Facebook ID to identify that user. You can get the Facebook ID from the providerData list in the currentUser. There will be an entry whose Resources:
POL:
Type: 'AWS::AutoScaling::ScalingPolicy'
Properties:
AutoScalingGroupName: !Ref AWSEBAutoScalingGroup
PolicyType: TargetTrackingScaling
TargetTrackingConfiguration:
PredefinedMetricSpecification:
PredefinedMetricType: ASGAverageCPUUtilization
TargetValue: 80
is the Facebook ID. So there is no null identifier. Only the email is null.
You can also use uid
API if you want to set the email yourself on that user.