-
Notifications
You must be signed in to change notification settings - Fork 466
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
No display name for users signed up by email in Firebase Auth #725
Comments
Are there any errors in console when signing in? Can you see those users' names in Firebase console? |
Thanks for your quick reply! I don't get any error message. Everything else is working just fine: the user is logged in and I can access other information like the email address. I can see the user along with e.g. the email address in the Firebase console, too. However, the Firebase console does not show the (display) name of any user in the first place, does it? |
Good point, it doesn't. Can you see the display name in the user's provider info? Also, what version of FirebaseUI are you using? |
No, the provider info does not provide that name either. It does contain only the providerID ("password"), the email and the userID which equals the email. The rest is nil. I'm including the following FirebaseUI pods:
All of them using the latest version 8.0.2. |
Sounds like a bug. We'll investigate. |
Just found this issue: #262. Looks like my issue is a duplicate of the former one. The bug still seems to exist though. Furthermore, I can confirm that |
@morganchen12 I am also experiencing this issue. Is there an ETA of when this will be resolved? |
Hey, unfortunately I haven't had time to make significant contributions to this SDK in a while. We're in the middle of some reshuffling that will hopefully get us some more contributors to FirebaseUI, but between the reporting of this bug and now there hasn't been any progress made. Sorry for the delays. |
I've been getting the same problem, any updates from Google/Firebase? |
Problem is still there. Any updates? |
@rosalyntan Would you mind taking a look at this one? |
This should be fixed in the latest version of FirebaseUI. Please let me know if that's not the case. |
I'm still seeing the error in FirebaseUI 12 @morganchen12 :( After logging in using the email provider, the displayName is nil. If I log out and back in, it is then set to the correct value from the UI - so it sounds like the same race case discussed above |
Have the same issue with the Apple id login. When I call Auth.auth().signIn(with: credentials) I got the result, but user.displayName is always nil. If I use auth with Google credentials it works just fine. |
Have the same issue. Funny though, that when using connectAuthEmulator the locally emulated console does show the displayName and it can be easily edited. |
Still an issue at the end of 2023. Especially annoying considering the I've only been able to work around this by placing a delay in the the body of the auth listener if the display name is empty. However, the complexity around the listener, delay, and rendering the UI accordingly is greater than the complexity avoided by using the prebuilt UI. We could use a better solution here...
|
@cmederos the issue you're describing sounds like it originates in the upstream Firebase SDK. Please file a new issue there instead. |
My environment
Problem description
I'm using the pre-built UI of Firebase Auth. When a user signs up by email, the UI lets him/her enter the user name (label asks for the first and last name combined as one input). However, I can't see a way to get that information later on. Instead, the
firebaseUser.displayName
is nil for those users. That's not the way it's meant to be, is it?The text was updated successfully, but these errors were encountered: