sigOut method

  1. @override
Future<Either<AuthFailure, ExaAuthUser?>> sigOut()
override

Signs out the current user.

Implementation

@override
Future<Either<AuthFailure, ExaAuthUser?>> sigOut() async {
  try {
    await firebaseAuth.signOut();
    await GoogleSignIn().signOut();
    return const Right(null);
  } catch (exception, stackTrace) {
    return left(_resolveException(
        exception: exception,
        stackTrace: stackTrace,
        locale: 'sigOut',
        sigInType: SigInType.phone));
  }
}