@sphereon/ssi-sdk.oid4vci-holder 0.34.1-next.322 → 0.34.1-next.324
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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +24 -24
- package/src/agent/OID4VCIHolder.ts +2 -0
- package/src/machines/oid4vciMachine.ts +1 -0
- package/src/services/OID4VCIHolderService.ts +1 -1
- package/src/types/IOID4VCIHolder.ts +1 -0
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -701,7 +701,8 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
|
|
|
701
701
|
onDone: {
|
|
702
702
|
target: OID4VCIMachineStates.initiateAuthorizationRequest,
|
|
703
703
|
actions: assign({
|
|
704
|
-
authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL")
|
|
704
|
+
authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL"),
|
|
705
|
+
openID4VCIClientState: /* @__PURE__ */ __name((_ctx, _event) => _event.data.oid4vciClientState, "openID4VCIClientState")
|
|
705
706
|
})
|
|
706
707
|
},
|
|
707
708
|
onError: {
|
|
@@ -2027,7 +2028,7 @@ var getIssuanceCryptoSuite = /* @__PURE__ */ __name(async (opts) => {
|
|
|
2027
2028
|
case "jwt":
|
|
2028
2029
|
case "jwt_vc_json":
|
|
2029
2030
|
case "jwt_vc":
|
|
2030
|
-
|
|
2031
|
+
case "vc+sd-jwt":
|
|
2031
2032
|
case "dc+sd-jwt":
|
|
2032
2033
|
case "mso_mdoc": {
|
|
2033
2034
|
const supportedPreferences = jwtCryptographicSuitePreferences.filter((suite) => signing_algs_supported.includes(suite));
|
|
@@ -2404,7 +2405,9 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2404
2405
|
logger.log(`authorization code URL ${authorizationCodeURL}`);
|
|
2405
2406
|
}
|
|
2406
2407
|
return {
|
|
2407
|
-
authorizationCodeURL
|
|
2408
|
+
authorizationCodeURL,
|
|
2409
|
+
// Needed, because the above createAuthorizationRequestUrl manipulates the state, adding pkce opts to the state
|
|
2410
|
+
oid4vciClientState: JSON.parse(await client.exportState())
|
|
2408
2411
|
};
|
|
2409
2412
|
}
|
|
2410
2413
|
async oid4vciHolderCreateCredentialsToSelectFrom(args, context) {
|