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

# DeviceCodeActivationAllowed

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

DeviceCodeActivationAllowed クラスは、`device-code-activation-allowed` 画面の機能を実装します。この画面は、デバイスコードの有効化が正常に承認されると表示されます。

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/4IkAJ0lbhcvwv8qHnH9lgr/17e38628ff74219a623fdbcf780aa9fe/Screenshot_2025-04-23_at_16.19.11.png)

## コンストラクター

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

```typescript Example theme={null}
import DeviceCodeActivationAllowed from '@auth0/auth0-acul-js/device-code-activation-allowed';
const deviceCodeActivationAllowedManager = new DeviceCodeActivationAllowed();
```

## プロパティ

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

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

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

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

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

電話番号入力用に、`available` や `recommended` などの国コードデータを `device-code-activation-allowed` 画面向けに提供します。

**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** `[ScreenMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembers)`

設定やコンテキストを含む、`device-code-activation-allowed` 画面固有の詳細を含みます。

**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)`

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

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

デバイスコード有効化フロー中のユーザー入力など、SDK に渡された信頼されていないデータを扱います。

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

`username`、`email`、`roles` など、現在アクティブなユーザーの詳細です。

## メソッド

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

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

```typescript Example theme={null}
import DeviceCodeActivationAllowed from '@auth0/auth0-acul-js/device-code-activation-allowed';
const deviceCodeActivationAllowedManager = new DeviceCodeActivationAllowed();
deviceCodeActivationAllowedManager.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'` に設定すると、選択した言語はセッションの間保持されます。

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

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