# Users unable to login when "Remember this browser" option is enabled for MFA

**URL:** <https://community.auth0.com/t/users-unable-to-login-when-remember-this-browser-option-is-enabled-for-mfa/200782>\
**Category:** Get Help\
**Tags:** mfa-api, mfa\
**Created:** [June 12, 2026, 9:32am UTC](https://community.auth0.com/t/users-unable-to-login-when-remember-this-browser-option-is-enabled-for-mfa/200782 "2026-06-12T09:32:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gy.ny-k](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gy.ny-k/32/79751_2.png) [@gy.ny-k](https://community.auth0.com/u/gy.ny-k)\
**Post date:** [June 12, 2026, 9:32am UTC](https://community.auth0.com/t/users-unable-to-login-when-remember-this-browser-option-is-enabled-for-mfa/200782/1 "2026-06-12T09:32:34Z")

</div>

Hi,

We had a recent issue where users got into an infinite redirect loop when the “Remember this device for 30 days” option was selected for MFA, making them unable to log in.

Reproduction flow: Login attempt → MFA request → User selects Remember device option → Successful Login.  
Logout, then on the next login: Login attempt → Infinite redirect loop, failure to log in

We enabled MFA in a Post Login action. We solved the issue by setting the `allowRememberBrowser` option to `false`.

Is it a new bug in auth0? This feature used to work without problems.

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [June 12, 2026, 5:43pm UTC](https://community.auth0.com/t/users-unable-to-login-when-remember-this-browser-option-is-enabled-for-mfa/200782/2 "2026-06-12T17:43:36Z")

</div>

Hi @gy.ny-k

Welcome to the Auth0 Community!

I understand that you are seeing a login loop when the " Remember this device " option is enabled for MFA.

This is a known behaviour that occurs due to how the Post-Login Actions interact with application SDKs (like `auth0-react` or `auth0-angular` ) during session renewals and subsequent logins, especially if the SDK attempts to renew tokens silently. After the user logs, completes MFA and checks the " Remember this device " option, on subsequent logins the SDK attempts to renew tokens silently (e.g., via `getAccessTokenSilently` or a refresh token) . Your Post-Login Action runs unconditionally and calls `api.multifactor.enable()` again and the request is flagged as requiring an MFA challenge.

You should be able to keep allowing your users to checks the " Remember this device " option while fixing the login loop by modifying your Post-Login Action to check whether MFA was already completed or if the request is a silent/refresh-token flow. The following documentation on [Silent authentication with Multi-factor Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication#silent-authentication-with-multi-factor-authentication) is a great resource in this regard and offer the following Post-Login Action template :

```auto
exports.onExecutePostLogin = async (event, api) => {
  const authMethods = event.authentication?.methods || []

  const completedMfa = !!authMethods.find((method) => method.name === 'mfa')

  if (!completedMfa) {
    api.multifactor.enable('any', { allowRememberBrowser: true })
  }
};

```

Allow me to also share the following topics and documentation on the matter, which should prove useful depending on your configurations:

- [Post-login action and MFA](https://community.auth0.com/t/post-login-action-and-mfa/134802);
- [Repeat prompting when using universal login and multifactor authentication](https://community.auth0.com/t/repeat-prompting-when-using-universal-login-and-multifactor-authentication/114175);
- [Sessions with Actions](https://auth0.com/docs/manage-users/sessions/manage-sessions-actions).

Hope this helped provide some additional details regarding the behaviour that you are seeing and thank you for reporting this to our end! Please reach out to us for any other issues or requests, we will gladly look into it.

Best regards,  
Gerald

---

<div class="post-metadata">

**Author:** ![gy.ny-k](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gy.ny-k/32/79751_2.png) [@gy.ny-k](https://community.auth0.com/u/gy.ny-k)\
**Post date:** [June 15, 2026, 9:13am UTC](https://community.auth0.com/t/users-unable-to-login-when-remember-this-browser-option-is-enabled-for-mfa/200782/3 "2026-06-15T09:13:36Z")

</div>

Hi @gerald.czifra ,

Thank you for the reply!

We have the same logic in our post login action as you recommended (the check for MFA completion). It worked until the evening of last Tuesday.
