@auth0/auth0-acul-js - v1.0.0-alpha.2
    Preparing search index...

    Class PhoneIdentifierChallenge

    Hierarchy

    • BaseContext
      • PhoneIdentifierChallenge

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.PHONE_IDENTIFIER_CHALLENGE

    Methods

    • Retrieves the array of transaction errors from the context, or an empty array if none exist.

      Returns Screens.Error[]

      An array of error objects from the transaction context.

    • Utility Feature

      Gets resend functionality with timeout management for this screen

      Parameters

      Returns Screens.ResendControl

      ResendControl object with startResend method

      import PhoneIdentifierChallenge from '@auth0/auth0-acul-js/phone-identifier-challenge';
      const handleStatusChange = (remainingSeconds, isDisabled) => {
      setDisabled(isDisabled);
      setRemaining(remainingSeconds);
      };

      const handleTimeout = () => {
      console.log('Timeout completed, resend is now available');
      };

      const { startResend } = phoneChallenge.resendManager({
      timeoutSeconds: 30,
      onStatusChange: handleStatusChange,
      onTimeout: handleTimeout
      });

      // Call startResend when user clicks resend button
      await startResend();