@sphereon/ssi-sdk.oid4vci-holder 0.33.1-feature.vcdm2.tsup.45 → 0.33.1-feature.vcdm2.tsup.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
- package/src/agent/OID4VCIHolder.ts +7 -4
package/dist/index.cjs
CHANGED
|
@@ -2796,7 +2796,8 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2796
2796
|
if (import_ssi_types2.CredentialMapper.isWrappedSdJwtVerifiableCredential(wrappedIssuerVC)) {
|
|
2797
2797
|
issuer = trimmed(wrappedIssuerVC.decoded?.sub);
|
|
2798
2798
|
} else if (import_ssi_types2.CredentialMapper.isWrappedW3CVerifiableCredential(wrappedIssuerVC)) {
|
|
2799
|
-
issuer = trimmed(wrappedIssuerVC.credential?.sub) ??
|
|
2799
|
+
issuer = trimmed(wrappedIssuerVC.credential?.sub) ?? // @ts-ignore
|
|
2800
|
+
trimmed(wrappedIssuerVC.credential?.credentialSubject?.id) ?? trimmed(this.idFromW3cCredentialSubject(wrappedIssuerVC));
|
|
2800
2801
|
} else if (import_ssi_types2.CredentialMapper.isWrappedMdocCredential(wrappedIssuerVC)) {
|
|
2801
2802
|
return Promise.reject(Error("mdoc not yet supported"));
|
|
2802
2803
|
}
|