Skip to content

Commit

Permalink
fix: Remove duplicate JWTs from VP Fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Jan 10, 2020
1 parent 09cf3fc commit f24ffea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/daf-w3c/src/action-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export class ActionHandler extends AbstractActionHandler {
try {
const issuer = await core.identityManager.issuer(did)
debug('Signing VP with', did)
// Removing duplicate JWT
data.vp.verifiableCredential = Array.from(new Set(data.vp.verifiableCredential))
const jwt = await createPresentation(data, issuer)
return jwt
} catch (error) {
Expand Down

0 comments on commit f24ffea

Please sign in to comment.