openSignInFlow method
Starts a OAuth sign-in flow for provider
using Firebase. The instance of FirebaseAuth will be from the default Firebase App
Unless withApp is used to build an instance
Implementation
@override
Future<User?> openSignInFlow(String provider, List<String> scopes,
[Map<String, String>? customOAuthParameters]) async {
await _channel.invokeMethod("signInOAuth", {
'provider': provider,
'app': _app.name,
'scopes': json.encode(scopes),
if (customOAuthParameters != null)
'parameters': json.encode(customOAuthParameters)
});
return FirebaseAuth.instanceFor(app: _app).currentUser;
}