Firebase Auth with email for Flutter

3,942

This should do what you want:

import 'package:firebase_auth/firebase_auth.dart' show FirebaseAuth;

...
final firebaseUser = await FirebaseAuth.instance
    .signInWithEmailAndPassword(email: email, password: password);
Share:
3,942
Darkhan
Author by

Darkhan

Updated on December 04, 2022

Comments

  • Darkhan
    Darkhan over 1 year

    I'm currently struggling to implement email sign up and log in in my app. I can't use google sign-in or other alternative methods for business reasons.

    How to implement Firebase Authentication with Email in Flutter? Is there a way to do it with the Firebase Auth plugin?

  • Darkhan
    Darkhan about 6 years
    Thanks! Now I know the general direction
  • asifa
    asifa almost 6 years
    What about password less login in flutter
  • Günter Zöchbauer
    Günter Zöchbauer almost 6 years
    @asifa can you please elaborate?
  • asifa
    asifa almost 6 years
    I mean firebase.google.com/docs/auth/android/email-link-auth . How to implement this in flutter
  • Günter Zöchbauer
    Günter Zöchbauer almost 6 years
    I think it's better to create a new question. I haven't looked into that one myself yet.
  • asifa
    asifa almost 6 years
    Is it possible to do in flutter. I am currently not allowed to post new questions.
  • Günter Zöchbauer
    Günter Zöchbauer almost 6 years
    Sorry, I don't know. I haven't tried or investigated.