From 435e906dff9880a0e4cf989b8ca793e05401562c Mon Sep 17 00:00:00 2001 From: andyv09 Date: Thu, 19 May 2022 14:20:21 +0200 Subject: [PATCH] fix(credential-w3c): added domain and challenge args --- packages/credential-w3c/src/action-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/credential-w3c/src/action-handler.ts b/packages/credential-w3c/src/action-handler.ts index 73078346e..e0a9fda4e 100644 --- a/packages/credential-w3c/src/action-handler.ts +++ b/packages/credential-w3c/src/action-handler.ts @@ -373,7 +373,7 @@ export class CredentialIssuer implements IAgentPlugin { const jwt = await createVerifiablePresentationJwt( presentation as any, { did: identifier.did, signer, alg }, - { removeOriginalFields: args.removeOriginalFields }, + { removeOriginalFields: args.removeOriginalFields, challenge: args.challenge, domain: args.domain }, ) //FIXME: flagging this as a potential privacy leak. debug(jwt)