@sphereon/ssi-sdk.oid4vci-holder 0.34.1-next.322 → 0.34.1-next.323
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 +5 -2
- 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 +5 -2
- 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/types/IOID4VCIHolder.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -781,7 +781,8 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
|
|
|
781
781
|
onDone: {
|
|
782
782
|
target: OID4VCIMachineStates.initiateAuthorizationRequest,
|
|
783
783
|
actions: (0, import_xstate.assign)({
|
|
784
|
-
authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL")
|
|
784
|
+
authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL"),
|
|
785
|
+
openID4VCIClientState: /* @__PURE__ */ __name((_ctx, _event) => _event.data.oid4vciClientState, "openID4VCIClientState")
|
|
785
786
|
})
|
|
786
787
|
},
|
|
787
788
|
onError: {
|
|
@@ -2484,7 +2485,9 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2484
2485
|
logger.log(`authorization code URL ${authorizationCodeURL}`);
|
|
2485
2486
|
}
|
|
2486
2487
|
return {
|
|
2487
|
-
authorizationCodeURL
|
|
2488
|
+
authorizationCodeURL,
|
|
2489
|
+
// Needed, because the above createAuthorizationRequestUrl manipulates the state, adding pkce opts to the state
|
|
2490
|
+
oid4vciClientState: JSON.parse(await client.exportState())
|
|
2488
2491
|
};
|
|
2489
2492
|
}
|
|
2490
2493
|
async oid4vciHolderCreateCredentialsToSelectFrom(args, context) {
|