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

# ResetPassword

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

The ResetPassword class implements the `reset-password` screen functionality. This screen allows the user to set a new password after verifying their identity.

![ACUL Reset password](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/1sUs1I4uL5GHwAH4RacAEQ/8acef7b055c4ed31405d7125d4e181f6/Screenshot_2025-01-27_at_17.30.17.png)

## Constructors

Create an instance of ResetPassword screen manager:

```typescript Example theme={null}
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.resetPassword({
  'password-reset': 'Test@123!',
  're-enter-password': 'Test@123!',
});
```

## 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 `reset-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 `reset-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** `[ScreenMembersOnResetPassword](/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnResetPassword)`

Contains details specific to the `reset-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** `[TransactionMembersOnResetPassword](/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembersOnResetPassword)`

Provides transaction-specific data for the `reset-password` screen, 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 the password reset flow.

**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 ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.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.

**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.

**resetPassword** `Promise\<void\>`

This method submits the user's new password to complete the password reset flow.

```typescript Example theme={null}
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.resetPassword({
  'password-reset': 'Test@123!',
  're-enter-password': 'Test@123!',
});
```

**Method Parameters**

**Parameters**

**options**

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

**password-reset** `string` *required*

The new password entered by the user.

**re-enter-password** `string` *required*

Confirmation of the new password. Must match `password-reset`.

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

This method validates a password string against the tenant's password policy and returns a validation result.

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

**Method Parameters**

**Parameters**

**password** `string` *required*

The password string to validate.
