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

# Consent

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

Consent クラスは、`consent` 画面の機能を提供します。この画面では、要求された権限がユーザーに表示され、アクセスを許可するか拒否するかを選択できます。

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/6cK6DkpOJYTjubOGu2vpID/80c03b32275a2c332fe3216df0eca5c7/Consent.png)

## コンストラクター

同意画面マネージャーのインスタンスを作成します:

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

## プロパティ

**branding** `[BrandingMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers)`

ブランディングテーマや設定など、ブランディング関連の構成を提供します。

**client** `[ClientMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ClientMembers)`

`consent` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の構成を提供します。

**countryCodes** `[CountryCodesMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/CountryCodesMembers)`

電話番号の入力時に使用する、`available` や `recommended` などの国コードデータを `consent` 画面向けに提供します。

**experiment** `[ExperimentMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ExperimentMembers)`

この画面で有効な [Experiment Center](/docs/docs/ja-jp/customize/experiment-center) の実験です。有効な実験がない場合 (または画面が `context_configuration` でオプトインしていない場合) は `null` です。

**organization** `[OrganizationMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers)`

ユーザーの組織に関する情報 (`id` や `name` など) を提供します。

**prompt** `[PromptMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PromptMembers)`

認証フロー内の現在の prompt に関するデータを含みます。

**screen** `[ScreenMembersOnConsent](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnConsent)`

要求されている `scopes` の一覧や `hideScopes` フラグなど、`consent` 画面固有の詳細を含みます。

**tenant** `[TenantMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TenantMembers)`

`id` や関連するメタデータなど、テナントに関連するデータを含みます。

**transaction** `[TransactionMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers)`

アクティブな識別子やフローの状態など、`consent` 画面向けのトランザクション固有のデータを提供します。

**untrustedData** `[UntrustedDataMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers)`

consent フロー中のユーザー入力など、SDK に渡される信頼できないデータを扱います。

**user** `[UserMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UserMembers)`

`username`、`email`、`roles` など、アクティブなユーザーの詳細が含まれます。

## メソッド

**accept** `Promise\<void\>`

このメソッドは、要求された権限を受け入れる (グラントする) というユーザーの決定を送信します。

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

**changeLanguage** `Promise\<void\>`

このメソッドは、Universal Login ページの表示言語を変更します。

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

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

**パラメーター**

**options**

[LanguageChangeOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions)。

**language** `string` *required*

使用する言語のロケールコードです (例：`'en'`、`'fr'`、`'es'`) 。

**persist?** `"session"`

`'session'` に設定すると、選択した言語がセッション中維持されます。

**deny** `Promise\<void\>`

このメソッドは、要求された権限を拒否するというユーザーの決定を送信します。

```typescript Example theme={null}
import Consent from '@auth0/auth0-acul-js/consent';
const consentManager = new Consent();
await consentManager.deny();
```

**getErrors** `[Error](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/Error)[]`

このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は空の配列を返します。
