-
Notifications
You must be signed in to change notification settings - Fork 1.1k
requireDisplayName with email link sign-in #713
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
We haven't seen requests for this. It would require an additional prompt after the link is clicked. We cannot throw an error as it would be a breaking change and could affect existing developers. |
Thanks for the response!
Could it have the field for Fair enough about throwing an error. Maybe log a warning to let you know that the I missed the "during email and password sign up" part of the docs on the first time through and only realized it after someone signed up with the email link and had no display name to show. Just to make sure no one else runs into this, I would suggest adding a sentence after that one to note that Anyway, this is a minor issue. Thank you for your work on this project! |
When I sign up with email/password I use:
//
|
Yes our project would really appreciate this option. As suggested by @emschwartz, we'd like the exact parallel to the way it works with email+password: Enter Email address --> Click Next --> Enter First & last name --> Click Next --> sends link to email. This makes it easier to get up and running with a project that needs a displayName. And is sometimes clearer to the user than entering information on both sides of the email link. Thank you! |
The lack of this feature is making me not use email link signups and it's a shame because otherwise it's great / this seems very easy to build into firebaseui :/ |
Congratulations on completing this issue without actually providing any useful resolution! It would be much better to keep this issue open and actually implement this feature. |
Is your feature request related to a problem? Please describe.
It is not completely obvious from the docs that setting
requireDisplayName: true
will have no effect if you also setsignInMethod: firebase.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD
.Describe the solution you'd like
It would be nice to be able to require the display name even if the user is signing up without a password.
Describe alternatives you've considered
If that's not possible, it would be worth clarifying the docs to emphasize that
requireDisplayName
will have no effect under this circumstance. It could also throw an error if you try to present both parameters at the same time.Additional context
I'm using the email sign-in provider alongside a couple of others and the user's display name is shown next to their contributions. I liked the idea of using the email sign-in link to avoid having most users input a bad password, but not having the display name means that I'd need an additional step in the flow to make sure they set it after logging in.
The text was updated successfully, but these errors were encountered: