# setValueToSecureStorage method

Future<void> setValueToSecureStorage({

1. required String key,
2. required String value,

})

Stores a value in secure storage for the given `key` and `value`.

Logs an error message if the operation fails.

## Implementation

    Future<void> setValueToSecureStorage({
      required String key,
      required String value,
    }) async {
      try {
        await _secureStorage.write(key: key, value: value);
      } catch (e) {
        log('Error writing to secure storage: $e');
      }
    }