I am developing a Flutter App and want to use Firebase Auth for user login. My problem is that I want to first ask for the email, check that the format is valid, and then send the user to a LogIn screen or SignIn screen depending on whether the email already exists on Firebase.
I read this question where it says that the only solution is to perform a signIn with createUserWithEmailAndPassword()
method and check the error message, a solution that in the long term is not very reliable.
As flutter is evolving very fast, do you guys know of a better solution to accomplish this?
Thanks in advance!