StaticscreenSubmits the MFA SMS challenge with the provided code.
The payload containing the code.
Submits the action to switch to voice call verification.
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 ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';
const resetPasswordMfaSmsChallenge = new ResetPasswordMfaSmsChallenge();
const { startResend } = resetPasswordMfaSmsChallenge.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 reset-password-mfa-sms-challenge screen.