Skip to main content
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

Constructors

Create an instance of ResetPassword screen manager
Example
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

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the reset-password screen.
Provides information about the user’s organization, such as organization id and name.
Contains data about the current prompt in the authentication flow.
Contains details specific to the reset-password screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the reset-password screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during the password reset flow.
Details of the active user, including username, email, and roles.

Methods

resetPassword
(options ?)
This method submits the user’s new password to complete the password reset flow.
Example
import ResetPassword from '@auth0/auth0-acul-js/reset-password';

const resetPasswordManager = new ResetPassword();
resetPasswordManager.resetPassword({
  'password-reset': 'Test@123!',
  're-enter-password': 'Test@123!',
});
options
OPTIONAL
Optional payload.
This method validates a password string against the tenant’s password policy and returns a validation result.
Example
import ResetPassword from '@auth0/auth0-acul-js/reset-password';

const resetPasswordManager = new ResetPassword();
resetPasswordManager.validatePassword('MyP@ssw0rd!');
options
OPTIONAL
Optional payload.
getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.