signOutAuthProviders function

void signOutAuthProviders()

Implementation

void signOutAuthProviders() {
  try {
    const FlutterSecureStorage().delete(key: "userId");
    // ignore: empty_catches
  } catch (e) {}
  try {
    googleSignIn.signOut();
    // ignore: empty_catches
  } catch (e) {}
  try {
    FacebookAuth.instance.logOut();
    // ignore: empty_catches
  } catch (e) {}
  try {
    defaultApiClient.cacheManager.clear();
    // ignore: empty_catches
  } catch (e) {}
}