funwithflutter / lit_firebase_auth

Lit Firebase Auth simplifies the process of adding Firebase Authentication to a Flutter application.
MIT License
76 stars 18 forks source link

[FeatureRequest] Smoother email login/signin #10

Open ciriousjoker opened 4 years ago

ciriousjoker commented 4 years ago

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.

funwithflutter commented 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');
ciriousjoker commented 4 years ago

oh I must have missed that api. Thanks for pointing it out!

ciriousjoker commented 4 years ago

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.

funwithflutter commented 4 years ago

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)