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

# SignupId

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

SignupId クラスは、`signup-id` 画面の機能を提供します。この画面では、複数ステップのサインアップフローの最初のステップとして、メールアドレス、ユーザー名、電話番号などのユーザー識別子を収集します。また、ソーシャルまたはエンタープライズ接続、および Google One Tap を介したフェデレーションサインアップもサポートしています。

![Signup ID](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/5lzGYj0k4VcxvPCBYH37SO/ebd291cc0dbd673a70f93530f724bf65/Signup_ID.png)

## コンストラクター

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

```typescript Example theme={null}
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.signup({
  email: 'test@example.com',
});
```

## プロパティ

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

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

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

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

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

`signup-id` 画面の電話番号入力用に、`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)`

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

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

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

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

設定やコンテキストなど、`signup-id` 画面に固有の詳細を含みます。

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

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

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

有効な識別子やフローの状態など、トランザクション固有のデータを提供します。

**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 SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.changeLanguage({
  language: 'fr',
});
```

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

**パラメータ**

**options**

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

**language** `string` *required*

使用する言語の locale コードです (例: `'en'`、`'fr'`、`'es'`) 。

**persist?** `"session"`

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

**federatedSignup** `Promise\<void\>`

このメソッドは、サインアップのためにユーザーを [Social](/docs/docs/ja-jp/authenticate/identity-providers/social-identity-providers) または [Enterprise Identity Provider](/docs/docs/ja-jp/authenticate/identity-providers/enterprise-identity-providers) (IdP) にリダイレクトします。

```typescript Example theme={null}
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.federatedSignup({
  connection: 'google-oauth2',
});
```

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

**パラメータ**

**options**

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

**connection** `string` *required*

Social または Enterprise Identity Provider の接続名です。

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

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

**getSignupIdentifiers** `[Identifier](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/Identifier)[] | null`

このメソッドは、`signup-id` form で有効になっている 識別子 の一覧を返し、トランザクション設定に基づいてそれぞれが必須か任意かを示します。返されるのは、識別子 オブジェクトの配列です (例: email、phone、username) 。

```typescript Example theme={null}
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
const identifiers = signupIdManager.getSignupIdentifiers();
// [{ type: 'email', required: true }, { type: 'username', required: false }]
```

**googleOneTap** `Promise\<void\>`

このメソッドは、Google One Tap の認証情報を使用して新規ユーザーを登録し、別のページにリダイレクトせずにワンクリックでサインアップできるようにします。

Google One Tap のプロンプトをレンダリングする前に、`screen.googleOneTapConfig` を確認してください。この機能がサーバー側で有効になっていない場合は `null` です。

```typescript Example theme={null}
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.googleOneTap({ one_tap_credential: credential });
```

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

**パラメータ**

**one\_tap\_credential** `string` *required*

Google Identity Services のプロンプトから返される Google One Tap の認証トークンです。

**pickCountryCode** `Promise\<void\>`

このメソッドは、ユーザーを国番号の選択リストにリダイレクトし、電話番号の国番号プレフィックスを変更できるようにします。

```typescript Example theme={null}
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.pickCountryCode();
```

**signup** `Promise\<void\>`

このメソッドは、`signup-id` に関連する設定を処理します。さまざまな 識別子 を使って新規ユーザーをサインアップできます。

```typescript Example theme={null}
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
signupIdManager.signup({
  email: 'test@example.com',
});
```

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

**パラメータ**

**options**

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

**email?** `string`

ユーザーのメールアドレスです。

**username?** `string`

ユーザーの 識別子 です。

**phone?** `string`

ユーザーの電話番号です。

**phoneCountryCode?** `string`

`countryCodes.available` の `code` からユーザーが `phone` 用に選択した ISO 3166-1 alpha-2 の国 (例: `'US'`) です。送信した国が優先されます。サーバーが国番号を先頭に付加するため、`phone` には国番号を含まない国内番号を指定してください。省略すると、サーバーが国を自動的に判定し、`pickCountryCode()` が別画面で選択を変更する既存の動作が維持されます。

**captcha?** `string`

captcha コード、または CAPTCHA provider からのレスポンスです。Auth0 テナントで [ボット検出](/docs/docs/ja-jp/secure/attack-protection/bot-detection) が有効になっている場合、このプロパティは必須です。

**\[`key`: `string`]** `"string" | "number" | "boolean" | "undefined"`

`ulp-` で始まる追加のカスタムフィールドです (例: `'ulp-custom-field'`) 。

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

このメソッドは、トランザクションコンテキストで定義されている現在のユーザー名ポリシーに照らして、指定されたユーザー名をバリデーションします。ユーザー名が有効かどうかと、その理由を示すオブジェクトを返します。

```typescript Example theme={null}
import SignupId from '@auth0/auth0-acul-js/signup-id';
const signupIdManager = new SignupId();
const result = signupIdManager.validateUsername('myusername');
// 結果 => { valid: true, errors: [] }
```

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

**パラメータ**

**username** `string` *required*

バリデーションするユーザー名文字列です。
