@sphereon/ssi-sdk.oid4vci-holder 0.33.1-feature.vcdm2.tsup.44 → 0.33.1-feature.vcdm2.tsup.46
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.js
CHANGED
|
@@ -2717,7 +2717,8 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2717
2717
|
if (CredentialMapper2.isWrappedSdJwtVerifiableCredential(wrappedIssuerVC)) {
|
|
2718
2718
|
issuer = trimmed(wrappedIssuerVC.decoded?.sub);
|
|
2719
2719
|
} else if (CredentialMapper2.isWrappedW3CVerifiableCredential(wrappedIssuerVC)) {
|
|
2720
|
-
issuer = trimmed(wrappedIssuerVC.credential?.sub) ??
|
|
2720
|
+
issuer = trimmed(wrappedIssuerVC.credential?.sub) ?? // @ts-ignore
|
|
2721
|
+
trimmed(wrappedIssuerVC.credential?.credentialSubject?.id) ?? trimmed(this.idFromW3cCredentialSubject(wrappedIssuerVC));
|
|
2721
2722
|
} else if (CredentialMapper2.isWrappedMdocCredential(wrappedIssuerVC)) {
|
|
2722
2723
|
return Promise.reject(Error("mdoc not yet supported"));
|
|
2723
2724
|
}
|