Open ciriousjoker opened 4 years ago
Sure, there can be examples showing how to implement this in a custom sign in flow.
What's the best way to validate if an email is already registered? Using the below?
firebaseAuth.fetchSignInMethodsForEmail(email: 'email@email.com');
oh I must have missed that api. Thanks for pointing it out!
Btw. for reference this is how my login looks atm. I'll probably add this functionality so that after the user entered his email and during the time he enters the password one of the buttons disappears.
Note, that this is not yet added to Lit Firebase Auth. Although it can be used through Firebase Auth. I'm reopening this as it would be ideal to have this accessible through context (or LIT)
Right now, you can either sign in or sign up. I'd like to be able to check if the email exists already and try to create the account if it doesn't.