validateConnectorAsync method

Future<SealdConnector> validateConnectorAsync(
  1. String connectorId,
  2. String challenge
)

Validate an added connector that was added without a preValidationToken.

connectorId - The ID of the connector to validate. challenge - The challenge. Returns the validated SealdConnector instance.

Implementation

Future<SealdConnector> validateConnectorAsync(
    String connectorId, String challenge) {
  return compute(
      (Map<String, dynamic> args) =>
          validateConnector(args["connectorId"], args["challenge"]),
      {"connectorId": connectorId, "challenge": challenge});
}