authorizeWith method

  1. @override
Future<void> authorizeWith(
  1. SocialConnection connection
)
override

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);
  }
}