Skip to content

Commit

Permalink
feat: Add 10 sec timeout for keys and verification fetch #2917
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Oct 3, 2024
1 parent a3f1bfc commit 1a1edf5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,13 @@ class OIDC4VC {

// final value = {'expiry': expiry, 'data': response.data};
// await secureStorageProvider.set(uri, jsonEncode(value));
response = await dio.get<dynamic>(uri);
response = await dio.get<dynamic>(
uri,
options: Options().copyWith(
sendTimeout: const Duration(seconds: 10),
receiveTimeout: const Duration(seconds: 10),
),
);

return response.data;
} on FormatException {
Expand Down

0 comments on commit 1a1edf5

Please sign in to comment.