Skip to main content
The Email OTP Challenge screen class provides methods associated with the email-otp-challenge screen.
Import and instantiate the Email OTP Challenge screen class:

Properties

The Email OTP Challenge screen class properties are:

Methods

The Email OTP Challenge screen class methods are:

getError( options? )

This method retrieves the array of transaction errors from context or an empty array if none exist.

resendCode( options ?)

This method requests a new OTP code to be sent to the user’s email.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

submitCode( options ?)

This method submits the OTP code entered by the user.
Parameter                 TypeRequiredDescription
codestringYesThe code entered by the user.
[key: string]string | number | boolean | undefinedNoOptional data collected from user.