validateAllData method

Future<Map<String, bool>> validateAllData()

Validate integrity of all stored data Returns a map of key -> isValid

Implementation

Future<Map<String, bool>> validateAllData() async {
  _checkInit();
  try {
    final allKeys = await getAllKeys();
    final results = <String, bool>{};

    for (var key in allKeys) {
      results[key] = await validateKey(key);
    }

    return results;
  } catch (e) {
    throw SecureStorageException('Failed to validate all data', e);
  }
}