@openid4vc/oauth2 0.3.0-alpha-20251029091020 → 0.3.0-alpha-20251029102217

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.mjs CHANGED
@@ -1952,7 +1952,9 @@ async function sendAuthorizationChallengeRequest(options) {
1952
1952
  ...options.additionalRequestPayload,
1953
1953
  auth_session: options.authSession,
1954
1954
  scope: options.scope,
1955
+ redirect_uri: options.redirectUri,
1955
1956
  resource: options.resource,
1957
+ state: options.state,
1956
1958
  code_challenge: pkce?.codeChallenge,
1957
1959
  code_challenge_method: pkce?.codeChallengeMethod,
1958
1960
  presentation_during_issuance_session: options.presentationDuringIssuanceSession
@@ -2203,9 +2205,11 @@ var Oauth2Client = class {
2203
2205
  authorizationServerMetadata: options.authorizationServerMetadata,
2204
2206
  additionalRequestPayload: options.additionalRequestPayload,
2205
2207
  pkceCodeVerifier: pkce?.codeVerifier,
2208
+ redirectUri: options.redirectUri,
2206
2209
  scope: options.scope,
2207
2210
  resource: options.resource,
2208
- dpop: options.dpop
2211
+ dpop: options.dpop,
2212
+ state: options.state
2209
2213
  });
2210
2214
  } catch (error) {
2211
2215
  if (!(error instanceof Oauth2ClientAuthorizationChallengeError && error.errorResponse.error === Oauth2ErrorCodes.RedirectToWeb)) throw error;
@@ -2233,7 +2237,8 @@ var Oauth2Client = class {
2233
2237
  scope: options.scope,
2234
2238
  pkceCodeVerifier: pkce?.codeVerifier,
2235
2239
  resource: options.resource,
2236
- dpop: options.dpop
2240
+ dpop: options.dpop,
2241
+ state: options.state
2237
2242
  });
2238
2243
  }
2239
2244
  sendAuthorizationChallengeRequest(options) {