Skip to content

Commit

Permalink
Fix mdoc extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jdu278 committed Aug 23, 2024
1 parent 4bda413 commit 543f93c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export async function getMdocClaims(vpToken: string): Promise<{
preferWeb: true

});
console.log('valueOut', valueOut)
// TODO: edit for multiple Presentations
const namespaces = valueOut.nameSpaces;
const namespaces = valueOut.documents[0].issuerSigned.nameSpaces;
const firstNamespace = Object.entries(namespaces)[0][0];
const dataArray: TagValue[] = namespaces[firstNamespace];

Expand Down

0 comments on commit 543f93c

Please sign in to comment.