diff --git a/packages/oidc4vc/lib/src/oidc4vc.dart b/packages/oidc4vc/lib/src/oidc4vc.dart index 33679a15f..3163f4ba4 100644 --- a/packages/oidc4vc/lib/src/oidc4vc.dart +++ b/packages/oidc4vc/lib/src/oidc4vc.dart @@ -1720,6 +1720,12 @@ class OIDC4VC { try { final secureStorageProvider = getSecureStorage; final cachedData = await secureStorageProvider.get(uri); + // TODO(hawkbee): To be removed. + /// temporary solution to purge faulty stored data + /// Will be removed in the future + await secureStorageProvider.delete(uri); + + /// end of temporary solution dynamic response; dio.options.headers = headers; @@ -1741,11 +1747,13 @@ class OIDC4VC { return response; } } - final expiry = - DateTime.now().add(const Duration(days: 2)).millisecondsSinceEpoch; + // temporary deactiviting this caching du to issue with + // flutter_secure_storage on ios #2657 + // final expiry = + // DateTime.now().add(const Duration(days: 2)).millisecondsSinceEpoch; - final value = {'expiry': expiry, 'data': response.data}; - await secureStorageProvider.set(uri, jsonEncode(value)); + // final value = {'expiry': expiry, 'data': response.data}; + // await secureStorageProvider.set(uri, jsonEncode(value)); return response.data; } on FormatException catch (_) { diff --git a/packages/secure_storage/pubspec.yaml b/packages/secure_storage/pubspec.yaml index 776ba96ae..276984dc1 100644 --- a/packages/secure_storage/pubspec.yaml +++ b/packages/secure_storage/pubspec.yaml @@ -9,7 +9,7 @@ environment: dependencies: flutter: sdk: flutter - flutter_secure_storage: ^9.2.1 + flutter_secure_storage: 9.0.0 dev_dependencies: flutter_test: diff --git a/pubspec.yaml b/pubspec.yaml index 84eb0ec6a..99c3653d4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: altme description: AltMe Flutter App -version: 2.5.4+453 +version: 2.5.5+454 environment: sdk: ">=3.1.0 <4.0.0"