StaticscreenUtility FeatureReturns the list of enabled identifiers for the signup-id form, marking each as required or optional based on transaction config.
Array of identifier objects (e.g., email, phone, username).
This methods handles signup-id related configuration. It allows to signup new users via different identifiers.
import SignupId from "@auth0/auth0-acul-js/signup-id";
const signupIdManager = new SignupId();
const { transaction } = signupIdManager;
//get mandatory & optional identifiers required for signup
const mandatoryIdentifier = transaction.getRequiredIdentifiers(); // eg: email
const optionalIdentifiers = transaction.getOptionalIdentifiers() // eg: phone
const signupParams = {
email : "testEmail",
phone : "+91923456789"
};
signupIdManager.signup(signupParams);
Utility FeatureValidates a given username against the current username policy defined in the transaction context.
The username string to validate.
Result object indicating whether the username is valid and why.
Remarks
This methods handles allows signup via different social identifiers. Eg: Google, Facebook etc.
Example