authorizeWith method
Implementation
@override
Future<void> authorizeWith(SocialConnection connection) async {
if (Platform.isIOS) {
throw PassageError(
code: PassageErrorCode.socialAuthError,
message: 'Not supported on iOS. Use authorizeIOS instead.');
}
try {
return await methodChannel.invokeMethod<void>(
'authorizeWith', {'connection': connection.value});
} catch (e) {
throw PassageError.fromObject(object: e);
}
}