how to sign in to the firebase using the Microsoft Auth provider. code example

Example 1: how to enable sign-in provider in firebase console

Enable Google Sign-In in the Firebase console:
1. In the Firebase console, open the Auth section.
2. On the Sign in method tab, enable the Google sign-in method and click Save.

Example 2: sigup and sign out using firebase auth in flutter

Future<Null> _signOut() async {
    await _auth.signOut();
    this.setState(() {
      isLoading = false;
    });
    Navigator.of(context).pushAndRemoveUntil(
        MaterialPageRoute(builder: (context) => MyApp()),
        (Route<dynamic> route) => false);
  }

Tags:

Misc Example