clearGroupKeyB method

Future<Either<String, dynamic>> clearGroupKeyB()

Clears (removes) the stored Group Key B from secure storage and invokes the native method SmartfaceMobile.clearGroupKeyB.

Use this method when you want to explicitly remove the key instead of passing 0 to addGroupKeyB.

Returns an Either with an error message on the left if the operation fails, or the native dynamic result on the right if it succeeds.

Implementation

Future<Either<String, dynamic>> clearGroupKeyB() async {
  await _secureStorageWrite(key: 'groupKeyB', value: '');
  return invokeNativeMethod('SmartfaceMobile.clearGroupKeyB');
}