revokeInstallations method

  1. @override
Future<void> revokeInstallations(
  1. Uint8List signerPrivateKey,
  2. List<String> installationIds
)
override

Revoke specific installations

Implementation

@override
Future<void> revokeInstallations(Uint8List signerPrivateKey, List<String> installationIds) async {
  try {
    final params = <String, dynamic>{
      'signerPrivateKey': signerPrivateKey.toList(),
      'installationIds': installationIds,
    }.jsify() as JSObject;

    await _promiseToFuture(
      _clientManager.revokeInstallations(params),
    );
  } catch (e) {
    throw Exception('Failed to revoke installations: $e');
  }
}