[Feature Request] Support a pre-filled email address
See original GitHub issueIs your feature request related to a problem? Please describe.
In my landing page, I have a simple form where people can enter their email address and sign up. I want to take them to a separate page to complete the sign up using firebaseui. As a result, I need a way to pre-fill the email address for the EmailAuthProvider.
FYI, other users may go directly to my sign up page and will enter the email address manually.
Describe the solution you’d like
An additional option in signInOptions that allows me to specify an email address.
Describe alternatives you’ve considered
I currently solve this by setting the value of the “email” input in the uiShown
callback. This works ok, but feels brittle as it relies on the name of the form field remaining constant over time.
It also has a visual problem if the user removes focus from the email field without editing it. In that case, the label will drop down and obscure the text (presumably because the input doesn’t consider it has been dirtied?).
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:8 (2 by maintainers)
Top GitHub Comments
People using multiple sign-in options can use this:
I found a
uiChanged
callback, but it’s not documented anywhere. So, I’d be hesitant to use it.There’s also firebaseui.auth.AuthUI.prototype.startWithSignInHint, but that’s not publically exposed right now (are there any plans for this?)
@arickuter sorry, not yet. I’ll look onto this when I get time.