@openid4vc/oauth2 0.3.0-alpha-20251029093110 → 0.3.0-alpha-20251029103950
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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1954,6 +1954,7 @@ async function sendAuthorizationChallengeRequest(options) {
|
|
|
1954
1954
|
scope: options.scope,
|
|
1955
1955
|
redirect_uri: options.redirectUri,
|
|
1956
1956
|
resource: options.resource,
|
|
1957
|
+
state: options.state,
|
|
1957
1958
|
code_challenge: pkce?.codeChallenge,
|
|
1958
1959
|
code_challenge_method: pkce?.codeChallengeMethod,
|
|
1959
1960
|
presentation_during_issuance_session: options.presentationDuringIssuanceSession
|
|
@@ -2207,7 +2208,8 @@ var Oauth2Client = class {
|
|
|
2207
2208
|
redirectUri: options.redirectUri,
|
|
2208
2209
|
scope: options.scope,
|
|
2209
2210
|
resource: options.resource,
|
|
2210
|
-
dpop: options.dpop
|
|
2211
|
+
dpop: options.dpop,
|
|
2212
|
+
state: options.state
|
|
2211
2213
|
});
|
|
2212
2214
|
} catch (error) {
|
|
2213
2215
|
if (!(error instanceof Oauth2ClientAuthorizationChallengeError && error.errorResponse.error === Oauth2ErrorCodes.RedirectToWeb)) throw error;
|
|
@@ -2235,7 +2237,8 @@ var Oauth2Client = class {
|
|
|
2235
2237
|
scope: options.scope,
|
|
2236
2238
|
pkceCodeVerifier: pkce?.codeVerifier,
|
|
2237
2239
|
resource: options.resource,
|
|
2238
|
-
dpop: options.dpop
|
|
2240
|
+
dpop: options.dpop,
|
|
2241
|
+
state: options.state
|
|
2239
2242
|
});
|
|
2240
2243
|
}
|
|
2241
2244
|
sendAuthorizationChallengeRequest(options) {
|
|
@@ -2254,7 +2257,8 @@ var Oauth2Client = class {
|
|
|
2254
2257
|
scope: options.scope,
|
|
2255
2258
|
callbacks: this.options.callbacks,
|
|
2256
2259
|
pkceCodeVerifier: options.pkceCodeVerifier,
|
|
2257
|
-
dpop: options.dpop
|
|
2260
|
+
dpop: options.dpop,
|
|
2261
|
+
state: options.state
|
|
2258
2262
|
});
|
|
2259
2263
|
}
|
|
2260
2264
|
async retrievePreAuthorizedCodeAccessToken({ authorizationServerMetadata, preAuthorizedCode, additionalRequestPayload, txCode, dpop, resource }) {
|