signInWithEmailAndPassword method
Signs in the user with the provided email and password, and returns the user credential.
Implementation
Future<UserCredential> signInWithEmailAndPassword(
String email,
String password,
) async {
try {
final credential = await _auth.signInWithEmailAndPassword(
email: email, password: password);
return credential;
} catch (err) {
if (err is FirebaseAuthException) {
throw AuthDataServiceException.fromRdevException(err.toRdevException());
}
throw AuthDataServiceException(
message: err.toString(),
);
}
}