We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869cd1d commit 62c7102Copy full SHA for 62c7102
packages/oidc4vc/lib/src/oidc4vc.dart
@@ -509,12 +509,20 @@ class OIDC4VC {
509
final didDocument = await dio.get<dynamic>(
510
'https://unires:[email protected]/1.0/identifiers/$didKey',
511
);
512
+ if (didDocument.data is String) {
513
+ return jsonDecode(didDocument.data as String)
514
+ as Map<String, dynamic>;
515
+ }
516
return didDocument.data as Map<String, dynamic>;
517
} catch (e) {
518
try {
519
520
'https://dev.uniresolver.io/1.0/identifiers/$didKey',
521
522
523
524
525
526
527
528
rethrow;
0 commit comments