@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.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: {
|
|
@@ -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) {
|