diff --git a/packages/vc-handler-ld-local/src/ld-credential-module.ts b/packages/vc-handler-ld-local/src/ld-credential-module.ts index e2cbb4ff8..4bce8b059 100644 --- a/packages/vc-handler-ld-local/src/ld-credential-module.ts +++ b/packages/vc-handler-ld-local/src/ld-credential-module.ts @@ -115,7 +115,7 @@ export class LdCredentialModule { verificationMethodId: string, challenge: string | undefined, domain: string | undefined, - purpose: typeof ProofPurpose = !challenge && !domain + purpose: typeof ProofPurpose = !challenge // domain is not a mandatory var for AuthenticationProofPurpose per se, but challenge is. ? new AssertionProofPurpose() : new AuthenticationProofPurpose({ domain, @@ -212,7 +212,7 @@ export class LdCredentialModule { domain: string | undefined, context: IAgentContext, fetchRemoteContexts = false, - presentationPurpose: typeof ProofPurpose = !challenge && !domain + presentationPurpose: typeof ProofPurpose = !challenge // domain is not a mandatory var for AuthenticationProofPurpose per se, but challenge is. ? new AssertionProofPurpose() : new AuthenticationProofPurpose({ domain, challenge }), checkStatus?: Function,