StaticscreenOptionalpayload: Screens.CustomOptionsUtility FeatureCreates a resend control manager for handling email code resend operations.
Optionaloptions: Screens.StartResendOptionsConfiguration options for the resend control
A ResendControl object with resend functionality and state management
import LoginPasswordlessEmailCode from '@auth0/auth0-acul-js/login-passwordless-email-code';
const loginPasswordlessEmailCode = new LoginPasswordlessEmailCode();
const { startResend } = loginPasswordlessEmailCode.resendManager({
timeoutSeconds: 60,
onStatusChange: (remainingSeconds, isDisabled) => {
console.log(`Resend available in ${remainingSeconds}s, disabled: ${isDisabled}`);
},
onTimeout: () => {
console.log('Resend is now available');
}
});
// Call startResend when user clicks resend button
startResend();
//Creates an instance of LoginPasswordlessEmailCode and calls the method with sample data.
import LoginPasswordlessEmailCode from '@auth0/auth0-acul-js/login-passwordless-email-code';
//Method to continue the login process using email and code.
const loginPasswordlessEmailCode = new LoginPasswordlessEmailCode();
loginPasswordlessEmailCode.submitCode({
email: "test@domain.com";
code: "<string>";
});
Retrieves the array of transaction errors from the context, or an empty array if none exist.