saveToSecure function

Future<void> saveToSecure(
  1. String key,
  2. String value
)

Saves a string value to secure storage or SharedPreferences as fallback

Implementation

Future<void> saveToSecure(String key, String value) async {
  // For this implementation, we'll use SharedPreferences as a simple storage
  // In a production app, you would use a more secure solution like flutter_secure_storage
  final prefs = await SharedPreferences.getInstance();
  await prefs.setString('onairos_$key', value);
}