diff --git a/lib/utils/famedlysdk_store.dart b/lib/utils/famedlysdk_store.dart index 9b6fcdc..e59352c 100644 --- a/lib/utils/famedlysdk_store.dart +++ b/lib/utils/famedlysdk_store.dart @@ -23,7 +23,11 @@ class Store extends StoreAPI { Future getItem(String key) async { if (kIsWeb) { await storage.ready; - return await storage.getItem(key); + try { + return await storage.getItem(key); + } catch (_) { + return null; + } } return await secureStorage.read(key: key); } diff --git a/pubspec.yaml b/pubspec.yaml index e44cedf..d893359 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: famedlysdk: git: url: https://gitlab.com/famedly/famedlysdk.git - ref: 5eda493ba2ca529fb351ca15028868a25ed6196e + ref: c57c7d6719c71e0c9f3ce4f6686b9512711435f2 localstorage: ^3.0.1+4 bubble: ^1.1.9+1