# Disable allowRememberBrowser

**URL:** <https://community.auth0.com/t/disable-allowrememberbrowser/133185>\
**Category:** Get Help\
**Tags:** mfa-api, mfa\
**Created:** [May 1, 2024, 10:07am UTC](https://community.auth0.com/t/disable-allowrememberbrowser/133185 "2024-05-01T10:07:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Echo](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Echo](https://community.auth0.com/u/Echo)\
**Post date:** [May 1, 2024, 10:07am UTC](https://community.auth0.com/t/disable-allowrememberbrowser/133185/1 "2024-05-01T10:07:41Z")

</div>

i want to disable allowRememberBrowser because the users need to 2fa before logging in but i can’t find it.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 2, 2024, 12:45am UTC](https://community.auth0.com/t/disable-allowrememberbrowser/133185/3 "2024-05-02T00:45:20Z")

</div>

Hi @Echo,

You should be able to force MFA every time your users log in by going to your [Dashboard \> Security \> Multi-factor Authentication](https://manage.auth0.com/#/security/mfa) and selecting **Always** for your _Require Multi-factor Auth_ policy.

Keep me posted on how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![Echo](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Echo](https://community.auth0.com/u/Echo)\
**Post date:** [May 2, 2024, 6:18am UTC](https://community.auth0.com/t/disable-allowrememberbrowser/133185/4 "2024-05-02T06:18:07Z")

</div>

Hi @rueben.tiow

Thank you for your quick reply.  
I still get the 30 days function when selecting always.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/6/6646ff28d1941a313a82b293399c5f40631f0999.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/8/e84f7b71f732fc855aa2339286366b12c348b5c3.png)

Is there someting else i am maybe doing wrong?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 3, 2024, 11:52pm UTC](https://community.auth0.com/t/disable-allowrememberbrowser/133185/5 "2024-05-03T23:52:20Z")

</div>

Hi @Echo

Thanks you for your reply.

You might need to use a Post-Login Action to disable the allowRememberBrowser option.

For example:

```auto
exports.onExecutePostLogin = async (event, api) => {  
  api.multifactor.enable('any', { allowRememberBrowser: false });
}

```

See [this documentation](https://auth0.com/docs/secure/multi-factor-authentication/customize-mfa#change-frequency-of-mfa-prompts) for your reference.

---

<div class="post-metadata">

**Author:** ![Echo](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Echo](https://community.auth0.com/u/Echo)\
**Post date:** [May 6, 2024, 6:30am UTC](https://community.auth0.com/t/disable-allowrememberbrowser/133185/6 "2024-05-06T06:30:48Z")

</div>

Thank you @rueben.tiow  
It works, i added a custom action in the login flow and it works flawless!

---

<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 20, 2024, 6:31am UTC](https://community.auth0.com/t/disable-allowrememberbrowser/133185/7 "2024-05-20T06:31:19Z")

</div>

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