authorize method
Initiates the authorization process using a third-party social provider.
This method opens the social provider's authentication interface. The behavior may vary based on the platform and the underlying implementation.
connection
: The social connection to use for login (e.g., Google, Apple).
Returns a Future<void>
that completes when the authorization process is initiated.
Throws:
PassageError
Implementation
Future<void> authorize(SocialConnection connection) {
return PassageFlutterPlatform.instance.authorizeWith(connection);
}