loadSecureStorageCache function

Future<void> loadSecureStorageCache()

Load secure storage cache (called during init)

Implementation

Future<void> loadSecureStorageCache() async {
  if (_secureStorageCacheLoaded) return;

  try {
    const storage = FlutterSecureStorage(
      aOptions: AndroidOptions(encryptedSharedPreferences: true),
      iOptions: IOSOptions(accessibility: KeychainAccessibility.first_unlock),
    );
    final all = await storage.readAll();
    _secureStorageCache.addAll(all);
    _secureStorageCacheLoaded = true;
  } catch (_) {
    // Ignore errors - cache will be empty
  }
}