clearAllSecure function

Future<void> clearAllSecure()

Clears all values from secure storage

Implementation

Future<void> clearAllSecure() async {
  // For this implementation, we'll use SharedPreferences as a simple storage
  final prefs = await SharedPreferences.getInstance();
  // Only clear Onairos-related keys
  for (var key in prefs.getKeys()) {
    if (key.startsWith('onairos_')) {
      await prefs.remove(key);
    }
  }
}