> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CustomizedConsentMembers

CustomizedConsentMembers

````ts Example theme={null}
export interface CustomizedConsentMembers extends BaseMembers {
  /**
   * Provides access to the specific properties and data of the Customized Consent screen,
   * including the list of `scopes` and `authorizationDetails` being requested.
   * @type {ScreenMembersOnCustomizedConsent}
   */
  screen: ScreenMembersOnCustomizedConsent;

  /**
   * Submits the user's decision to accept (grant) the requested permissions and authorization details.
   * This action posts to the `/u/customized-consent` endpoint with `action: "accept"`.
   * The transaction state is automatically included.
   *
   * @param {CustomOptions} [payload] - Optional. An object for any custom key-value pairs
   *                                    to be sent with the request. These parameters will be
   *                                    included in the form data submitted to the server.
   * @returns {Promise<void>} A promise that resolves when the accept action is successfully submitted.
   *                          On success, Auth0 typically redirects the user back to the application
   *                          or to the next step in the authentication flow.
   * @throws {Error} Throws an error if the form submission fails (e.g., network issue, invalid state).
   *                 Server-side errors (like "invalid_request") will be reflected in `this.transaction.errors`
   *                 after the operation, rather than being thrown as JavaScript errors.
   *
   * @example
   * ```typescript
   * // Assuming 'customizedConsentManager' is an instance of the CustomizedConsent SDK class
   * try {
   *   await customizedConsentManager.accept();
   *   // If successful, the page will typically redirect.
   * } catch (error) {
   *   // Handle unexpected errors during the submission itself.
   *   console.error("Failed to submit consent acceptance:", error);
   * }
   * // After the await, check customizedConsentManager.transaction.errors for server-side validation issues.
   * ```
   */
  accept(payload?: CustomOptions): Promise<void>;

  /**
   * Submits the user's decision to deny (reject) the requested permissions and authorization details.
   * This action posts to the `/u/customized-consent` endpoint with `action: "deny"`.
   * The transaction state is automatically included.
   *
   * @param {CustomOptions} [payload] - Optional. An object for any custom key-value pairs
   *                                    to be sent with the request. These parameters will be
   *                                    included in the form data submitted to the server.
   * @returns {Promise<void>} A promise that resolves when the deny action is successfully submitted.
   *                          On success, Auth0 typically redirects the user, potentially showing an
   *                          access denied message or returning an error to the application.
   * @throws {Error} Throws an error if the form submission fails (e.g., network issue, invalid state).
   *                 Server-side errors are reflected in `this.transaction.errors`.
   *
   * @example
   * ```typescript
   * // Assuming 'customizedConsentManager' is an instance of the CustomizedConsent SDK class
   * try {
   *   await customizedConsentManager.deny({ reason_code: "user_rejected_details" }); // Example custom option
   *   // If successful, the page will typically redirect.
   * } catch (error) {
   *   console.error("Failed to submit consent denial:", error);
   * }
   * // After the await, check customizedConsentManager.transaction.errors for server-side validation issues.
   * ```
   */
  deny(payload?: CustomOptions): Promise<void>;
}
````

## Properties

<ParamField body="branding" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/BrandingMembers">BrandingMembers</a></span>} />

<ParamField body="client" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/ClientMembers">ClientMembers</a></span>} />

<ParamField body="organization" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/OrganizationMembers">OrganizationMembers</a></span>} />

<ParamField body="prompt" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/PromptMembers">PromptMembers</a></span>} />

<ParamField body="screen" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/ScreenMembersOnCustomizedConsent">ScreenMembersOnCustomizedConsent</a></span>}>
  Provides access to the specific properties and data of the Customized Consent screen,
  including the list of `scopes` and `authorizationDetails` being requested.
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/TenantMembers">TenantMembers</a></span>} />

<ParamField body="transaction" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/TransactionMembers">TransactionMembers</a></span>} />

<ParamField body="untrustedData" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>} />

<ParamField body="user" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/UserMembers">UserMembers</a></span>} />

## Methods

<ParamField body="accept" type="Promise<void>">
  Submits the user's decision to accept (grant) the requested permissions and authorization details.
  This action posts to the `/u/customized-consent` endpoint with `action: "accept"`.
  The transaction state is automatically included.

  A promise that resolves when the accept action is successfully submitted.
  On success, Auth0 typically redirects the user back to the application
  or to the next step in the authentication flow.

  #### Throws

  Throws an error if the form submission fails (e.g., network issue, invalid state).
  Server-side errors (like "invalid\_request") will be reflected in `this.transaction.errors`
  after the operation, rather than being thrown as JavaScript errors.

  ```typescript Example theme={null}
  // Assuming 'customizedConsentManager' is an instance of the CustomizedConsent SDK class
  try {
    await customizedConsentManager.accept();
    // If successful, the page will typically redirect.
  } catch (error) {
    // Handle unexpected errors during the submission itself.
    console.error("Failed to submit consent acceptance:", error);
  }
  // After the await, check customizedConsentManager.transaction.errors for server-side validation issues.
  ```

  <Expandable title="Parameters">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/CustomOptions">CustomOptions</a></span>}>
      Optional. An object for any custom key-value pairs
      to be sent with the request. These parameters will be
      included in the form data submitted to the server.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="deny" type="Promise<void>">
  Submits the user's decision to deny (reject) the requested permissions and authorization details.
  This action posts to the `/u/customized-consent` endpoint with `action: "deny"`.
  The transaction state is automatically included.

  A promise that resolves when the deny action is successfully submitted.
  On success, Auth0 typically redirects the user, potentially showing an
  access denied message or returning an error to the application.

  #### Throws

  Throws an error if the form submission fails (e.g., network issue, invalid state).
  Server-side errors are reflected in `this.transaction.errors`.

  ```typescript Example theme={null}
  // Assuming 'customizedConsentManager' is an instance of the CustomizedConsent SDK class
  try {
    await customizedConsentManager.deny({ reason_code: "user_rejected_details" }); // Example custom option
    // If successful, the page will typically redirect.
  } catch (error) {
    console.error("Failed to submit consent denial:", error);
  }
  // After the await, check customizedConsentManager.transaction.errors for server-side validation issues.
  ```

  <Expandable title="Parameters">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/CustomOptions">CustomOptions</a></span>}>
      Optional. An object for any custom key-value pairs
      to be sent with the request. These parameters will be
      included in the form data submitted to the server.
    </ParamField>
  </Expandable>
</ParamField>
