@pagopa/io-wallet-oauth2 1.4.2 → 1.5.1
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.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1608,6 +1608,11 @@ interface BaseCreatePushedAuthorizationRequestOptions<V extends ItWalletSpecsVer
|
|
|
1608
1608
|
* Creation time of the JWT. If not provided the current date will be used
|
|
1609
1609
|
*/
|
|
1610
1610
|
issuedAt?: Date;
|
|
1611
|
+
/**
|
|
1612
|
+
* Optional issuer state from the Credential Offer authorization_code grant.
|
|
1613
|
+
* Serialized as issuer_state in the authorization request.
|
|
1614
|
+
*/
|
|
1615
|
+
issuerState?: string;
|
|
1611
1616
|
/**
|
|
1612
1617
|
* jti parameter to use for PAR. If not provided a value will generated automatically
|
|
1613
1618
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1608,6 +1608,11 @@ interface BaseCreatePushedAuthorizationRequestOptions<V extends ItWalletSpecsVer
|
|
|
1608
1608
|
* Creation time of the JWT. If not provided the current date will be used
|
|
1609
1609
|
*/
|
|
1610
1610
|
issuedAt?: Date;
|
|
1611
|
+
/**
|
|
1612
|
+
* Optional issuer state from the Credential Offer authorization_code grant.
|
|
1613
|
+
* Serialized as issuer_state in the authorization request.
|
|
1614
|
+
*/
|
|
1615
|
+
issuerState?: string;
|
|
1611
1616
|
/**
|
|
1612
1617
|
* jti parameter to use for PAR. If not provided a value will generated automatically
|
|
1613
1618
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1423,6 +1423,7 @@ async function createPushedAuthorizationRequest(options) {
|
|
|
1423
1423
|
client_id: options.clientId,
|
|
1424
1424
|
code_challenge: pkce.codeChallenge,
|
|
1425
1425
|
code_challenge_method: pkce.codeChallengeMethod,
|
|
1426
|
+
...options.issuerState !== void 0 ? { issuer_state: options.issuerState } : {},
|
|
1426
1427
|
jti: options.jti ?? (0, import_io_wallet_utils12.encodeToBase64Url)(
|
|
1427
1428
|
await options.callbacks.generateRandom(RANDOM_BYTES_SIZE)
|
|
1428
1429
|
),
|