# How to prompt for MFA once during an SSO session?

**URL:** <https://community.auth0.com/t/how-to-prompt-for-mfa-once-during-an-sso-session/190435>\
**Category:** Get Help\
**Tags:** mfa-api, mfa\
**Created:** [August 11, 2025, 1:21pm UTC](https://community.auth0.com/t/how-to-prompt-for-mfa-once-during-an-sso-session/190435 "2025-08-11T13:21:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teddy8](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teddy8/32/76116_2.png) [@teddy8](https://community.auth0.com/u/teddy8)\
**Post date:** [August 11, 2025, 1:21pm UTC](https://community.auth0.com/t/how-to-prompt-for-mfa-once-during-an-sso-session/190435/1 "2025-08-11T13:21:56Z")

</div>

Hi I’m trying to start adding MFA to my users via an action - I don’t want to enable it globally (yet).

As it stands users only have to enter their userid & password once per session, but are asked for MFA between each app.

```js
if (event.user.app_metadata.mfa_required) {
    api.multifactor.enable("any");
  }

```

I’ve had success with this - but I would prefer to keep remember browser off if possible. I just want them to enter it once per session.

```js
if (event.user.app_metadata.mfa_required) {
    api.multifactor.enable("any", {allowRememberBrowser: true});
}

```

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [August 11, 2025, 4:34pm UTC](https://community.auth0.com/t/how-to-prompt-for-mfa-once-during-an-sso-session/190435/3 "2025-08-11T16:34:34Z")

</div>

Hi @teddy8,

This community post should be of help.

> [@Trying to enforce Email MFA but SMS is being triggered instead](https://community.auth0.com/t/trying-to-enforce-email-mfa-but-sms-is-being-triggered-instead/190223/3):
>
> Hi @s.kimura, Welcome to the Auth0 Community! The enable() method turns on the ability to use email as an MFA method. This should be enabled from the dashboard at Security \> Multi-factor Auth. If you want to customize which MFA factor challenges the user, you must set Require Multi-factor Auth to Never, and turn off MFA Risk Assessors. Save, and then, at Additional Settings, turn on Customize MFA factors using Actions

You can modify it for your specific use case inside of the Action. By using this method, you will be responsible for when exactly the MFA challenge will be triggered.

If you have any other questions, feel free to reach out!

Have a good one,  
Vlad

---

<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:** [August 25, 2025, 4:35pm UTC](https://community.auth0.com/t/how-to-prompt-for-mfa-once-during-an-sso-session/190435/4 "2025-08-25T16:35:17Z")

</div>

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