Skip to content

Commit

Permalink
Emailpass dissapear after we close the wallet and reopen
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed May 17, 2024
1 parent 4938bc4 commit 11b99e6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 (_) {
Expand Down

0 comments on commit 11b99e6

Please sign in to comment.