signOut method

  1. @override
FutureOr signOut(
  1. BuildContext context
)
override

Implementation

@override
FutureOr signOut(BuildContext context) async {
  log.info('Logging out!');
  return FirebaseAuth.instance.signOut().catchError((e) {
    log.info('  - Unable to sign out of firebase $e');
  }).then((value) => Future.wait([
        for (var provider in loginProviders)
          provider.signOut().catchError((e) {
            log.info('  - Unable to log out ${provider.name} $e');
          }),
      ], eagerError: true));
}