From 623c3b7cf6c003b17f4075b04e70ed0265a11f79 Mon Sep 17 00:00:00 2001 From: Tom Lanser Date: Tue, 26 Nov 2024 10:41:40 +0100 Subject: [PATCH] fix: Apply withEntityId patch for the normal version Signed-off-by: Tom Lanser --- .../src/openid4vc-verifier/OpenId4VcSiopVerifierService.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/openid4vc/src/openid4vc-verifier/OpenId4VcSiopVerifierService.ts b/packages/openid4vc/src/openid4vc-verifier/OpenId4VcSiopVerifierService.ts index 8332a9010..8159ade91 100644 --- a/packages/openid4vc/src/openid4vc-verifier/OpenId4VcSiopVerifierService.ts +++ b/packages/openid4vc/src/openid4vc-verifier/OpenId4VcSiopVerifierService.ts @@ -626,6 +626,11 @@ export class OpenId4VcSiopVerifierService { if (clientIdScheme) { builder.withClientIdScheme(clientIdScheme) + + if (clientIdScheme === 'entity_id') { + // @ts-expect-error - This is something in the new OIDVC package but is't used yet in this credo version + builder.withEntityId(clientId) + } } if (presentationDefinition) {