Skip to content

requireDisplayName with email link sign-in #713

Closed
@emschwartz

Description

@emschwartz

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 set signInMethod: 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions