signInWithMicrosoft method
dynamic
signInWithMicrosoft()
Login with Microsoft
Implementation
signInWithMicrosoft() async {
final MicrosoftAuthProvider microsoftProvider = MicrosoftAuthProvider();
microsoftProvider.addScope("openid");
try {
final UserCredential userCredential =
await FirebaseAuth.instance.signInWithProvider(microsoftProvider);
return userCredential;
} on FirebaseAuthException catch (exception) {
debugPrint("exception->${exception.message}");
return exception.toString();
}
}