What value does Firebase Auth Identifier store from Facebook Login If user is not registered with email but with Phone Number. My app provides facebook login but now when a user is carrying on with Facebook login my firebase auth stores the email address as an Identifiers but when someone login in my app via facebook login who had registered with phone number in facebook then my firebase auth is storing null value in Identifier. So what should I do to store a user's phone number from facebook as an identofier or facebook id as an identifier e.g [email protected]
1 Answers
5
votes
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 uid is the Facebook ID. So there is no null identifier. Only the email is null.
You can also use updateEmail API if you want to set the email yourself on that user.