@auth0/auth0-acul-js - v0.1.0-beta.5
    Preparing search index...

    Class SignupPassword

    Hierarchy

    • BaseContext
      • SignupPassword

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.SIGNUP_PASSWORD

    Methods

    • Parameters

      Returns Promise<void>

      This methods handles signup-password related screen configuration. It allows to proceed with registering signup password along with signup identifiers passed in previous screen

      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 proceed
      const mandatoryIdentifier = transaction.getRequiredIdentifiers(); //eg: email
      const optionalIdentifiers = transaction.getOptionalIdentifiers() //eg: phone

      //get signup data submitted on previous screen from previous screen
      const data = transaction.screen.getScreenData(); //eg: email, phone


      const signupParams = {
      email : data.email,
      password: "******"
      };

      signupPasswordManager.signup(signupParams);