From 11b99e6af55888f7a85818b5bd7e2463172c16b2 Mon Sep 17 00:00:00 2001 From: hawkbee1 Date: Fri, 17 May 2024 12:10:12 +0000 Subject: [PATCH] Emailpass dissapear after we close the wallet and reopen #2657 --- packages/oidc4vc/lib/src/oidc4vc.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/oidc4vc/lib/src/oidc4vc.dart b/packages/oidc4vc/lib/src/oidc4vc.dart index 33679a15f..ca6aad871 100644 --- a/packages/oidc4vc/lib/src/oidc4vc.dart +++ b/packages/oidc4vc/lib/src/oidc4vc.dart @@ -1741,11 +1741,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 (_) {