> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CustomizedConsent

> Universal Login の `customized-consent` 画面をカスタマイズするために使用できる、すべてのプロパティとメソッドについて説明します。

CustomizedConsent クラスは、`customized-consent` 画面の機能を実装します。この画面では、クライアントアプリケーションによって要求された権限と認可の詳細を承認するか拒否するかをユーザーに求めます。

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/6cK6DkpOJYTjubOGu2vpID/80c03b32275a2c332fe3216df0eca5c7/Consent.png?fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=23ca2f416add98297b1aa12c56356569" alt="" width="363" height="634" data-path="docs/images/cdy7uua7fh8z/6cK6DkpOJYTjubOGu2vpID/80c03b32275a2c332fe3216df0eca5c7/Consent.png" />
</Frame>

<div id="constructors">
  ## コンストラクター
</div>

CustomizedConsent画面マネージャーのインスタンスを作成します。

```typescript Example theme={null}
import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';
const customizedConsentManager = new CustomizedConsent();
await customizedConsentManager.accept();
```

<div id="properties">
  ## プロパティ
</div>

<ParamField body="branding" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  ブランディングテーマや各種設定など、ブランディングに関する構成を提供します。
</ParamField>

<ParamField body="client" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  `customized-consent` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の構成を提供します。
</ParamField>

<ParamField body="organization" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  ユーザーの組織に関する情報 (`id` や `name` など) を提供します。
</ParamField>

<ParamField body="prompt" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  認証フロー内の現在のプロンプトに関するデータが含まれます。
</ParamField>

<ParamField body="screen" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnCustomizedConsent">ScreenMembersOnCustomizedConsent</a></span>}>
  `scopes` や `authorizationDetails` など、`customized-consent` 画面に固有の詳細が含まれます。
</ParamField>

<ParamField body="tenant" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>}>
  `id` や関連メタデータなど、テナントに関するデータが含まれます。
</ParamField>

<ParamField body="transaction" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  アクティブな識別子やフローの状態など、`customized-consent` 画面のトランザクション固有のデータを提供します。
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  同意フロー中のユーザー入力など、SDK に渡される信頼できないデータを扱います。
</ParamField>

<ParamField body="user" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>}>
  `username`、`email`、`roles` などを含む、現在のユーザーの詳細です。
</ParamField>

<div id="methods">
  ## メソッド
</div>

<ParamField body="accept" type="Promise<void>">
  このメソッドは、要求された権限および認可の詳細を承認するというユーザーの決定を送信します。

  ```typescript Example theme={null}
  import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';
  const customizedConsentManager = new CustomizedConsent();
  await customizedConsentManager.accept();
  ```
</ParamField>

<ParamField body="changeLanguage" type="Promise<void>">
  このメソッドは、Universal Login ページの表示言語を変更します。

  ```typescript Example theme={null}
  import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';
  const customizedConsentManager = new CustomizedConsent();
  customizedConsentManager.changeLanguage({
    language: 'fr',
  });
  ```

  **メソッドパラメーター**

  <Expandable title="パラメーター">
    <ParamField body="options">
      [LanguageChangeOptions](/ja/docs/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions)。
    </ParamField>

    <ParamField body="language" type="string" required>
      使用する言語のロケールコード (例: `'en'`、`'fr'`、`'es'`) 。
    </ParamField>

    <ParamField body="persist?" type="&#x22;session&#x22;">
      `'session'` に設定すると、選択した言語はセッションの間保持されます。
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="deny" type="Promise<void>">
  このメソッドは、要求された権限および認可の詳細を拒否するというユーザーの決定を送信します。

  ```typescript Example theme={null}
  import CustomizedConsent from '@auth0/auth0-acul-js/customized-consent';
  const customizedConsentManager = new CustomizedConsent();
  await customizedConsentManager.deny();
  ```
</ParamField>

<ParamField body="getErrors" type={<span><a href="/ja/docs/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーがない場合は空の配列を返します。
</ParamField>
