getAllKeys method

Future<List<String>> getAllKeys()

Get all keys (excluding internal keys)

Implementation

Future<List<String>> getAllKeys() async {
  _checkInit();
  try {
    return await _withRetry(() async {
      final allKeys = await _secureStorage.readAll();
      return allKeys.keys
          .where((key) => key != _keyIdentifier && key != _versionKey)
          .toList();
    });
  } catch (e) {
    throw SecureStorageException('Failed to get all keys', e);
  }
}