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

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 CHANGED
@@ -2310,7 +2310,7 @@ declare class Oauth2AuthorizationServer {
2310
2310
  [x: string]: unknown;
2311
2311
  iat: number;
2312
2312
  htu: string;
2313
- htm: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT" | "PATCH";
2313
+ htm: "POST" | "GET" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT" | "PATCH";
2314
2314
  jti: string;
2315
2315
  ath?: string | undefined;
2316
2316
  iss?: string | undefined;
@@ -2613,6 +2613,11 @@ interface SendAuthorizationChallengeRequestOptions {
2613
2613
  * server in determining the resource server to handle the authorization request for
2614
2614
  */
2615
2615
  resource?: string;
2616
+ /**
2617
+ * Redirect uri to include in the authorization challenge request. Maybe be used by the
2618
+ * server when falling back to a PAR request.
2619
+ */
2620
+ redirectUri?: string;
2616
2621
  /**
2617
2622
  * Presentation during issuance session if credentials were presented
2618
2623
  * as part of an issuance session
package/dist/index.d.ts CHANGED
@@ -2310,7 +2310,7 @@ declare class Oauth2AuthorizationServer {
2310
2310
  [x: string]: unknown;
2311
2311
  iat: number;
2312
2312
  htu: string;
2313
- htm: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT" | "PATCH";
2313
+ htm: "POST" | "GET" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT" | "PATCH";
2314
2314
  jti: string;
2315
2315
  ath?: string | undefined;
2316
2316
  iss?: string | undefined;
@@ -2613,6 +2613,11 @@ interface SendAuthorizationChallengeRequestOptions {
2613
2613
  * server in determining the resource server to handle the authorization request for
2614
2614
  */
2615
2615
  resource?: string;
2616
+ /**
2617
+ * Redirect uri to include in the authorization challenge request. Maybe be used by the
2618
+ * server when falling back to a PAR request.
2619
+ */
2620
+ redirectUri?: string;
2616
2621
  /**
2617
2622
  * Presentation during issuance session if credentials were presented
2618
2623
  * as part of an issuance session
package/dist/index.js CHANGED
@@ -1977,6 +1977,7 @@ async function sendAuthorizationChallengeRequest(options) {
1977
1977
  ...options.additionalRequestPayload,
1978
1978
  auth_session: options.authSession,
1979
1979
  scope: options.scope,
1980
+ redirect_uri: options.redirectUri,
1980
1981
  resource: options.resource,
1981
1982
  code_challenge: pkce?.codeChallenge,
1982
1983
  code_challenge_method: pkce?.codeChallengeMethod,
@@ -2228,6 +2229,7 @@ var Oauth2Client = class {
2228
2229
  authorizationServerMetadata: options.authorizationServerMetadata,
2229
2230
  additionalRequestPayload: options.additionalRequestPayload,
2230
2231
  pkceCodeVerifier: pkce?.codeVerifier,
2232
+ redirectUri: options.redirectUri,
2231
2233
  scope: options.scope,
2232
2234
  resource: options.resource,
2233
2235
  dpop: options.dpop