mycar98765

Untitled

Feb 18th, 2023
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | Source Code | 0 0
  1. Future<void> signInWithEmailAndPassword(String email, String password) async {
  2. try {
  3. await firebaseAuth.signInWithEmailAndPassword(email: email, password: password);
  4. final credential = EmailAuthProvider.credential(email: email, password: password);
  5. await FirebaseAuth.instance.currentUser?.linkWithCredential(credential);
  6. } on FirebaseAuthException catch (e) {
  7. throw FirebaseAuthException(code: e.code, message: e.message);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment