initialize method

Future<void> initialize(
  1. String serverURL,
  2. String activateToken,
  3. String activateCertificate
)

Implementation

Future<void> initialize(String serverURL, String activateToken, String activateCertificate) async {
  try {
    await _channel.invokeMethod('initialize', {
      'serverUrl': serverURL,
      'activateToken': activateToken,
      'activateCertificate': activateCertificate,
    });
  } on PlatformException catch (e) {
    log("Failed to initialize AuthMe SDK: ${e.message}");
    rethrow;
  }
}