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

# SignupPassword

> Describes all the properties and methods available to customize the Universal Login `signup-password` screen.

The SignupPassword class implements the `signup-password` screen functionality. This screen collects the user's password.

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

## Constructors

Create an instance of SignupPassword screen manager:

```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!',
});
```

## Properties

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

Provides branding-related configurations, such as branding theme and settings.

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

Provides client-related configurations, such as `id`, `name`, and `logoUrl`, for the `signup-password` screen.

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

Provides country code data for phone number entry, such as `available` and `recommended`, for the `signup-password` screen.

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

The active [Experiment Center](/docs/docs/customize/experiment-center) experiment for this screen, or `null` when no experiment is active (or the screen has not opted in via `context_configuration`).

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

Provides information about the user's Organization, such as `id` and `name`.

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

Contains data about the current prompt in the authentication flow.

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

Contains details specific to the `signup-password` screen, including its configuration and context.

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

Contains data related to the tenant, such as `id` and associated metadata.

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

Provides transaction-specific data, such as active identifiers and flow states.

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

Handles untrusted data passed to the SDK, such as user input during login.

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

Details of the active user, including `username`, `email`, and `roles`.

## Methods

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

This method changes the display language of the Universal Login page.

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

**Method Parameters**

**Parameters**

**options**

[LanguageChangeOptions](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions).

**language** `string` *required*

The locale code for the desired language (for example, `'en'`, `'fr'`, `'es'`).

**persist?** `"session"`

When set to `'session'`, the selected language persists for the duration of the session.

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

This method redirects the user to the [Social](/docs/docs/authenticate/identity-providers/social-identity-providers) or [Enterprise Identity Provider](/docs/docs/authenticate/identity-providers/enterprise-identity-providers) (IdP) for signup.

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

**Method Parameters**

**Parameters**

**options**

[FederatedSignupPasswordPayloadOptions](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/FederatedSignupPasswordPayloadOptions).

**connection** `string` *required*

The Social or Enterprise Identity Provider connection name.

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

This method retrieves the array of transaction errors from the context, or an empty array if none exist. An array of error objects from the transaction context.

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

This method skips password creation for the current signup. Only available when `screen.data.showSkipPassword` is set to `true`.

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

**Method Parameters**

**Parameters**

**options**

[SkipPasswordOptions](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/SkipPasswordOptions).

**captcha?** `string`

The captcha code or response from the captcha provider. This property is required if your Auth0 tenant has [Bot Detection](/docs/docs/secure/attack-protection/bot-detection) enabled.

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

This method handles the submission of the signup password form.

```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!',
});
```

**Method Parameters**

**Parameters**

**options**

[SignupPasswordOptions](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/SignupPasswordOptions).

**email?** `string`

The user's email.

**username?** `string`

The user's identifier.

**phoneNumber?** `string`

The user's phone number.

**password** `string` *required*

The user's password.

**captcha?** `string`

The captcha code or response from the captcha provider. This property is required if your Auth0 tenant has [Bot Detection](/docs/docs/secure/attack-protection/bot-detection) enabled.

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

Additional custom fields prefixed with `ulp-` (for example, `'ulp-custom-field'`).

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

This method switches the authentication connection during the signup-password flow.

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

**Method Parameters**

**Parameters**

**options**

[SwitchConnectionOptionsSignupPassword](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/SwitchConnectionOptionsSignupPassword).

**connection** `string` *required*

The connection identifier to switch to during the signup-password authentication flow.

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

This method validates a password string against the current transaction's password policy. It returns an object indicating whether the password is valid and why.

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

**Method Parameters**

**Parameters**

**password** `string` *required*

The password string to validate.
