简体   繁体   中英

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?

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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM