File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 11name : altme
22description : AltMe Flutter App
33
4- version : 3.4.0+5672
4+ version : 3.4.1+5673
55
66publish_to : " none" # Remove this line if you wish to publish to pub.dev
77environment :
You can’t perform that action at this time.
0 commit comments