revokeAllOtherInstallations method

  1. @override
Future<void> revokeAllOtherInstallations(
  1. Uint8List signerPrivateKey
)
override

Revoke all other installations

Implementation

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

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