# Unable to trigger required SMS MFA challenge when biometrics is setup

**URL:** <https://community.auth0.com/t/unable-to-trigger-required-sms-mfa-challenge-when-biometrics-is-setup/141847>\
**Category:** Get Help\
**Tags:** webauth-factor, mfa\
**Created:** [August 26, 2024, 10:42pm UTC](https://community.auth0.com/t/unable-to-trigger-required-sms-mfa-challenge-when-biometrics-is-setup/141847 "2024-08-26T22:42:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![henry\_csft](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/henry_csft/32/54553_2.png) [@henry\_csft](https://community.auth0.com/u/henry_csft)\
**Post date:** [August 26, 2024, 10:42pm UTC](https://community.auth0.com/t/unable-to-trigger-required-sms-mfa-challenge-when-biometrics-is-setup/141847/1 "2024-08-26T22:42:01Z")

</div>

I am unable to trigger a Phone/SMS challenge in my Universal Login flow, if the user is setup for biometrics (webauthn-platform) already. Here is my action, when testing, the console.log statement “Previous SMS MFA authorization expired, prompting SMS MFA” is executed, but I don’t get a SMS MFA enforcement flow. Instead, it still defaults to Biometric check, and on success, just completes. If I choose password, instead of going through biometrics, the SMS challenged does appear. I have other actions in the mix but none of them ever call api.multifactor.enable., only api.authentication.enrollWith.

My requirement is to be able to force SMS MFA check on certain logins, even when biometrics is setup.

If the device does not have biometrics, the flow works as expected, with SMS MFA enforcement every time.

exports.onExecutePostLogin = async (event, api) =\> {

const factor\_sms = {  
type: ‘phone’,  
options: { preferredMethod: ‘sms’ }  
}  
const factor\_biometric = {  
type: ‘webauthn-platform’  
}

const canPromptMfa = event.user.multifactor && event.user.multifactor.length \> 0;  
if (canPromptMfa) {

```
if (appMetadata && appMetadata.hasOwnProperty("LAST_SUCCESSFUL_LOGIN_WITH_MFA_SMS")) {
  const mfaAuthExpired = true // for testing SMS MFA on strict auth expiration
  if (mfaAuthExpired) {
    console.log("Previous SMS MFA authorization expired, prompting SMS MFA");
    api.authentication.challengeWith(factor_sms);
  }
  else {
    console.log("Previous MFA authorization is still valid");
    api.authentication.challengeWith(factor_biometric);
  }
}
else {
  console.log('No successful SMS MFA login detected, prompting SMS MFA');
  api.authentication.challengeWith(factor_sms);
}

```

}  
};

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [May 8, 2025, 11:28am UTC](https://community.auth0.com/t/unable-to-trigger-required-sms-mfa-challenge-when-biometrics-is-setup/141847/3 "2025-05-08T11:28:39Z")

</div>

Hi @henry_csft, and sorry for the late reply!

When Biometrics are enabled, it is not possible to challenge with another MFA before, as described in our [docs](https://auth0.com/docs/authenticate/login/auth0-universal-login/passwordless-login/webauthn-device-biometrics#:~:text=This%20has%20several,as%20first%20factor). This is because Biometrics is considered the most secure MFA challenge.

If you would like this feature to be available, please share your use case with the team in the #feature-request section.

Thank you for your question, and let me know if I can assist you further!

Sincerely,  
Teodor

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 22, 2025, 11:29am UTC](https://community.auth0.com/t/unable-to-trigger-required-sms-mfa-challenge-when-biometrics-is-setup/141847/4 "2025-05-22T11:29:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
