Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Auth with email for Flutter

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?

like image 287
Darkhan Avatar asked Mar 07 '23 10:03

Darkhan


1 Answers

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);
like image 190
Günter Zöchbauer Avatar answered Mar 20 '23 09:03

Günter Zöchbauer