Skip to content

Commit

Permalink
fix: Adding tag in VP
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Dec 2, 2019
1 parent 6838d04 commit c154015
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/daf-cli/src/credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ program
message: 'Audience DID',
choices: identities,
},
{
type: 'input',
name: 'tag',
message: 'Tag',
},
])

if (!answers.aud) {
Expand All @@ -139,6 +144,8 @@ program
},
])
aud = audAnswer.aud
} else {
aud = answers.aud
}

const credentials = await dataStore.findCredentials({ sub: answers.iss })
Expand Down Expand Up @@ -187,6 +194,7 @@ program
did: answers.iss,
data: {
aud: aud,
tag: answers.tag,
vp: {
'@context': ['https://www.w3.org/2018/credentials/v1'],
type: ['VerifiableCredential'],
Expand Down

0 comments on commit c154015

Please sign in to comment.