Creates an instance of MfaSmsChallenge screen manager
StaticscreenSubmits the MFA SMS challenge with the provided code and rememberDevice option.
The payload containing the code and rememberDevice option.
Submits the action to switch to voice call verification.
Optionalpayload: Screens.CustomOptionsOptional payload.
Submits the action to pick a different SMS configuration, if available.
Optionalpayload: Screens.CustomOptionsOptional payload.
Submits the action to resend the SMS code.
Optionalpayload: Screens.CustomOptionsOptional payload.
Utility FeatureGets resend functionality with timeout management for this screen
Optionaloptions: Screens.StartResendOptionsConfiguration options for resend functionality
Options for configuring resend functionality
OptionalonStatusChange?: Screens.OnStatusChangeCallbackOptionalonTimeout?: () => voidOptionaltimeoutSeconds?: numberResendControl object with startResend method
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge';
const mfaSmsChallenge = new MfaSmsChallenge();
const { startResend } = mfaSmsChallenge.resendManager({
timeoutSeconds: 15,
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();
Submits the action to try another MFA method.
Optionalpayload: Screens.CustomOptionsOptional payload.
This class provides methods to handle the mfa-sms-challenge screen.