From 2374c71251b94bc178c669b9c0ef3cd98e74a017 Mon Sep 17 00:00:00 2001 From: Andraz <69682837+andyv09@users.noreply.github.com> Date: Thu, 19 May 2022 15:51:10 +0200 Subject: [PATCH] fix(credential-w3c): forward domain and challenge args to createVerifiablePresentationJwt (#887) --- 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)