signInWithEmailNPassword method
Implementation
@override
Future<Response<UserCredential>> signInWithEmailNPassword({
required String email,
required String password,
}) async {
const response = Response<UserCredential>();
try {
final result = await firebaseAuth.signInWithEmailAndPassword(
email: email,
password: password,
);
return response.copy(data: result, message: "Sign in successful!");
} on FirebaseAuthException catch (e) {
return response.copy(error: e.message);
}
}