just documenting the issue [skip ci]

This commit is contained in:
Omar Hatem 2024-04-26 05:54:03 +03:00 committed by GitHub
parent 56232a1520
commit aac44e43aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,7 @@ Future<String?> readSecureStorage(FlutterSecureStorage secureStorage, String key
Future<void> writeSecureStorage(FlutterSecureStorage secureStorage,
{required String key, required String value}) async {
// delete the value before writing on macOS because of a weird bug
// https://github.com/mogol/flutter_secure_storage/issues/581
if (Platform.isMacOS) {
await secureStorage.delete(key: key);
}