signIn method

  1. @override
Future<LucidAuthResult> signIn(
  1. String email,
  2. String password
)
override

Implementation

@override
Future<LucidAuthResult> signIn(String email, String password) async {
  try {
    final credential = await _auth.signInWithEmailAndPassword(email: email, password: password);
    return await _resultFromCredential(credential);
  } on fb.FirebaseAuthException catch (e) {
    return LucidAuthResult.error(_mapException(e).message);
  } catch (e) {
    return LucidAuthResult.error('Connexion impossible: $e');
  }
}