|
|
@ -33,8 +33,12 @@ class Store extends StoreAPI {
|
|
|
|
await storage.ready;
|
|
|
|
await storage.ready;
|
|
|
|
return await storage.setItem(key, value);
|
|
|
|
return await storage.setItem(key, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (value == null) {
|
|
|
|
|
|
|
|
return await secureStorage.delete(key: key);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
return await secureStorage.write(key: key, value: value);
|
|
|
|
return await secureStorage.write(key: key, value: value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<Map<String, DeviceKeysList>> getUserDeviceKeys() async {
|
|
|
|
Future<Map<String, DeviceKeysList>> getUserDeviceKeys() async {
|
|
|
|
final deviceKeysListString = await getItem(_UserDeviceKeysKey);
|
|
|
|
final deviceKeysListString = await getItem(_UserDeviceKeysKey);
|
|
|
|