Skip to content

Commit c143dbe

Browse files
committed
Merge branch 'main' into remove_dartez
2 parents cfc5ad6 + 91092a4 commit c143dbe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/oidc4vc/lib/src/oidc4vc.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,20 @@ class OIDC4VC {
509509
final didDocument = await dio.get<dynamic>(
510510
'https://unires:[email protected]/1.0/identifiers/$didKey',
511511
);
512+
if (didDocument.data is String) {
513+
return jsonDecode(didDocument.data as String)
514+
as Map<String, dynamic>;
515+
}
512516
return didDocument.data as Map<String, dynamic>;
513517
} catch (e) {
514518
try {
515519
final didDocument = await dio.get<dynamic>(
516520
'https://dev.uniresolver.io/1.0/identifiers/$didKey',
517521
);
522+
if (didDocument.data is String) {
523+
return jsonDecode(didDocument.data as String)
524+
as Map<String, dynamic>;
525+
}
518526
return didDocument.data as Map<String, dynamic>;
519527
} catch (e) {
520528
rethrow;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: altme
22
description: AltMe Flutter App
33

4-
version: 3.4.0+5672
4+
version: 3.4.1+5673
55

66
publish_to: "none" # Remove this line if you wish to publish to pub.dev
77
environment:

0 commit comments

Comments
 (0)