From ee627010f71863aacc000a07838df5a704d35647 Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Wed, 31 Jul 2024 14:33:31 +0200 Subject: [PATCH] feat: store self-issued vc as HOLDER --- src/services/machines/onboardingMachineService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/machines/onboardingMachineService.ts b/src/services/machines/onboardingMachineService.ts index 9fe6070c..c7aa58ca 100644 --- a/src/services/machines/onboardingMachineService.ts +++ b/src/services/machines/onboardingMachineService.ts @@ -65,7 +65,7 @@ const createUserAndIdentity = async ( }, }); await storeVerifiableCredential({ - credentialRole: CredentialRole.ISSUER, + credentialRole: CredentialRole.HOLDER, // Here we are both ISSUER & HOLDER but has I think it to be HOLDER due to "oid4vp.filterCredentialsAgainstAllDefinitions(CredentialRole.HOLDER)" issuerCorrelationId: identifier.did, issuerCorrelationType: CredentialCorrelationType.DID, vc: verifiableCredential,