-
Notifications
You must be signed in to change notification settings - Fork 204
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
The UserRecord object is missing displayName when signing in with firebase-ui #530
Comments
Hi @salah3x, I think the issue is that when you register an email/password user, there is usually no displayName or photoUrl associated with that account yet. When you go through the other examples you mention such as Google OAuth, your Google account already has those details linked, so they are returned properly. Here's an example where I first register as an email/password user: Let me know if I'm mistaken, but in this case the function is returning all of the information that it has available at the time. You can find more information about this on our User properties doc. Hope that helps. |
Ah I was missing the This does seem specific to FirebaseUI, so you might be able to work around this similar to this example. There are also more details in this thread. I would recommend filing a feature request to bring more attention to this issue. Hope this helps. |
Thanks @kevinajian So here is a summary of this issue (for people facing similar issue):
Based on this discussion:
|
Related issues
[REQUIRED] Version info
node:
v10.15.3
firebase-functions:
3.1.0
firebase-tools:
7.1.0
firebase-admin:
8.0.0
[REQUIRED] Test case
The UserRecord object doesn't have all the properties.
I'm interrested in
photoUrl
&displayName
but they arenull
.Other properties like
uid
,email
, andcreationTime
are set to the correct values[REQUIRED] Steps to reproduce
when I sign in using firebase-ui (username+password) I got the following output in cloud functions' logs
[REQUIRED] Expected behavior
To get the full user object.
BTW: The field are present when I get the user object using the client SDK or when I sign in using Google oauth, no problems there!
[REQUIRED] Actual behavior
The UserRecord object is missing the
photoUrl
&displayName
fields, maybe other fields too.Were you able to successfully deploy your functions?
Yep.
The text was updated successfully, but these errors were encountered: