I've been trying to catch exception from the new https://firebase.flutter.dev/ Firebase Auth and failed. Not sure what went wrong, here is my code for signIn with email and password function:
try {
UserCredential userCredential = await _firebaseAuth
.signInWithEmailAndPassword(email: email, password: password);
if (userCredential != null) {
_user = userCredential.user;
}
} on FirebaseAuthException catch (e) {
print(e.code);
} on PlatformException catch (e) {
print(e.message);
} catch (e) {
print(e.toString());
}
return _user;
}
