signInWithMicrosoft static method
Implementation
static Future<void> signInWithMicrosoft(BuildContext context) async {
if (kIsWeb) {
return svc<AuthService>().signInWithPopup(MicrosoftAuthProvider());
}
return svc<AuthService>().signIn(await SocialSignIn()
.initialSite(
svc<AuthService>().getSignInConfig<MicrosoftSignInConfig>()!, null)
.signIn(context)
.then((i) => i.credential));
}