-
Notifications
You must be signed in to change notification settings - Fork 1.9k
displayName not set when creating new email account #1574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For FirebaseUI android this is expected behavior. Behind the scenes we do two operations:
It's operation (1) that triggers the cloud function, since that's when the user is created. What I don't understand is how firebaseui-web is getting around this issue. @bojeil-google any idea? |
That was originally an issue, but I worked around that in the function by calling getUser() instead of using the user that was passed into the trigger. I don't know why that works when the user is created from the web library but not the android library. |
@ambrice in that case it's just a race condition. If your Since there's nothing I can do here to make this work every time, I am going to close the issue. I know it sounds like a terrible solution but you could try adding a ~5second delay within your function before fetching the user record to make the race condition less likely. |
I have the following function for updating firebase database user entry when a new user is created:
When creating a new email account from the firebase-ui web library, this function triggers correctly. When using firebase-ui android library 4.2.1, the userRecord.displayName is undefined even though a full name was entered.
The text was updated successfully, but these errors were encountered: