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

# SignupPassword

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

SignupPassword クラスは、`signup-password` 画面の機能を実装するクラスです。この画面では、ユーザーのパスワードを入力します。

![Flexible IDs を使用した Signup Password](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/5h85r3sVhe8mVw7rDkDwTD/02c3521d9d6c4d490c1a64ae37ecca72/Signup_Password_with_Flexible_IDs.png)

## コンストラクター

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

```typescript Example theme={null}
import SignupPassword from '@auth0/auth0-acul-js/signup-password';
const signupPasswordManager = new SignupPassword();
signupPasswordManager.signup({
  email: 'test@example.com',
  password: 'P@$wOrd123!',
});
```

## プロパティ

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

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

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

`signup-password` 画面用の `id`、`name`、`logoUrl` など、クライアントに関する構成を提供します。

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

`signup-password` 画面用の `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** `[ScreenMembersOnSignupPassword](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnSignupPassword)`

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

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

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

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

アクティブな識別子やフローの状態など、取引 固有のデータを提供します。

**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 SignupPassword from '@auth0/auth0-acul-js/signup-password';
const signupPasswordManager = new SignupPassword();
signupPasswordManager.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 SignupPassword from '@auth0/auth0-acul-js/signup-password';
const signupPasswordManager = new SignupPassword();
signupPasswordManager.federatedSignup({
  connection: 'google-oauth2',
});
```

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

**パラメータ**

**options**

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

**connection** `string` *required*

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

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

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

**skipPassword** `Promise\<void\>`

このメソッドは、現在のサインアップでのパスワード作成をスキップします。`screen.data.showSkipPassword` が `true` に設定されている場合にのみ利用できます。

```typescript Example theme={null}
import SignupPassword from '@auth0/auth0-acul-js/signup-password';
const signupPasswordManager = new SignupPassword();
await signupPasswordManager.skipPassword();
```

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

**パラメータ**

**options**

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

**captcha?** `string`

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

**signup** `Promise\<void`

このメソッドは、サインアップ用パスワードフォームの送信を処理します。

```typescript Example theme={null}
import SignupPassword from '@auth0/auth0-acul-js/signup-password';
const signupPasswordManager = new SignupPassword();
signupPasswordManager.signup({
  email: 'test@example.com',
  password: 'P@$wOrd123!',
});
```

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

**パラメータ**

**options**

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

**email?** `string`

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

**username?** `string`

ユーザーの識別子です。

**phoneNumber?** `string`

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

**password** `string` *required*

ユーザーのパスワードです。

**captcha?** `string`

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

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

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

**switchConnection** `Promise\<void\>`

このメソッドは、signup-password フロー中に使用する接続を切り替えます。

```typescript Example theme={null}
import SignupPassword from '@auth0/auth0-acul-js/signup-password';
const signupPasswordManager = new SignupPassword();
signupPasswordManager.switchConnection({
  connection: 'Username-Password-Authentication',
});
```

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

**パラメータ**

**options**

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

**connection** `string` *required*

signup-password 認証フロー中に切り替える接続識別子です。

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

このメソッドは、現在の取引のパスワードポリシーに照らしてパスワード文字列を検証します。パスワードが有効かどうか、およびその理由を示すオブジェクトを返します。

```typescript Example theme={null}
import SignupPassword from '@auth0/auth0-acul-js/signup-password';
const signupPasswordManager = new SignupPassword();
const result = signupPasswordManager.validatePassword('MyP@ssw0rd!');
```

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

**パラメータ**

**password** `string` *required*

検証するパスワード文字列です。
