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

# AcceptInvitation

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

AcceptInvitation クラスは、`accept-invitation` 画面の機能を提供します。この画面は、ユーザーが organization への招待を承諾して参加する必要がある場合に表示されます。

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/7E8WhBDFF6oBEE6YdGH5Of/ba6c56b47cfca43ce7a798e2c5d5a094/Screenshot_2025-03-25_at_19.58.39.png)

## コンストラクター

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

```typescript Example theme={null}
import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';
const acceptInvitationManager = new AcceptInvitation();
await acceptInvitationManager.acceptInvitation();
```

## プロパティ

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

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

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

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

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

`accept-invitation` 画面向けに、電話番号入力のための国コードデータ (`available` や `recommended` など) を提供します。

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

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

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

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

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

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

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

構成やコンテキストを含む、`accept-invitation` 画面固有の詳細を含みます。

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

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

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

有効な識別子やフローの状態など、`accept-invitation` 画面における transaction 固有のデータを提供します。

**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` など、現在のユーザーの詳細です。

## メソッド

**acceptInvitation** `Promise\<void\>`

このメソッドは招待を承諾し、ユーザーをorganizationに追加します。

```typescript Example theme={null}
import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';
const acceptInvitationManager = new AcceptInvitation();
await acceptInvitationManager.acceptInvitation();
```

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

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

```typescript Example theme={null}
import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';
const acceptInvitationManager = new AcceptInvitation();
acceptInvitationManager.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)[]`

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