diff --git a/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts b/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts index 6fcb860f..c083f7a9 100644 --- a/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts +++ b/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts @@ -373,7 +373,11 @@ export class OpSession { if (uvp.verifiableCredential?.length) { return sum + uvp.verifiableCredential?.length } - if (!PEX.allowMultipleVCsPerPresentation(uvp.verifiableCredential as Array)) { + const isSdJWT = CredentialMapper.isSdJwtDecodedCredential(uvp) + if ( + isSdJWT || + (uvp.verifiableCredential && !PEX.allowMultipleVCsPerPresentation(uvp.verifiableCredential as Array)) + ) { return sum + 1 } return sum