authorizeWith method

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

Implementation

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