[auth] Add login parameter to createUserWithEmailAndPassword() #5692
Unanswered
jonbhanson
asked this question in
Feature request
Replies: 3 comments
-
This is something we really need guys. Its part of best practice authentication flows... |
Beta Was this translation helpful? Give feedback.
0 replies
-
this is still relevant |
Beta Was this translation helpful? Give feedback.
0 replies
-
I agree, but I think it's a bit hard for flutterfire to do this as flutterfire uses the underlying sdks. That means that I think you should create a feature request at the firebase sdk. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when a user creates a new account in auth using email, the user is automatically logged in regardless of whether the email has been verified. It seems most apps are designed to only allow login after the email is verified. Currently, to implement this behavior it is necessary to immediately log the user out after the account is created. This can create stutter if the app uses a
StreamBuilder
based on the the user stream. For more detail, see this stack overflow thread.Please add a
login
parameter tocreateUserWithEmailAndPassword()
to allow the account to be created without logging in the account such as:This will save us from the current hacky solution.
Beta Was this translation helpful? Give feedback.
All reactions