chore: fix Web secure storage
This commit is contained in:
parent
8db0fb7e19
commit
02680b618d
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ class FlutterFamedlySdkHiveDatabase extends FamedlySdkHiveDatabase {
|
|||
}
|
||||
HiveCipher hiverCipher;
|
||||
try {
|
||||
// Workaround for secure storage is calling Platform.operatingSystem on web
|
||||
if (kIsWeb) throw MissingPluginException();
|
||||
|
||||
final secureStorage = const FlutterSecureStorage();
|
||||
final containsEncryptionKey =
|
||||
await secureStorage.containsKey(key: _hiveCipherStorageKey);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue