This methods handles signup-password related screen configuration.
It allows to proceed with registering signup password along with signup identifiers passed in previous screen
Example
Report incorrect code
Copy
Ask AI
import SignupPassword from "@auth0/auth0-acul-js/signup-password";const signupPasswordManager = new SignupPassword();const { transaction, screen } = signupPasswordManager;//get mandatory & optional identifiers required for signup-password screen to proceedconst mandatoryIdentifier = transaction.getRequiredIdentifiers(); //eg: emailconst optionalIdentifiers = transaction.getOptionalIdentifiers() //eg: phone//get signup data submitted on previous screen from previous screenconst data = transaction.screen.getScreenData(); //eg: email, phoneconst signupParams = { email : data.email, password: "******"};signupPasswordManager.signup(signupParams);
Utility FeatureValidates a password string against the current transaction’s password policy.This method retrieves the password policy from the current transaction context
and delegates the actual validation to coreValidatePassword.It returns an array of validation results, each containing:
code: the identifier of the password rule,
policy: a user-friendly description of the rule,
isValid: boolean indicating if the password passed that rule.