# Not able to refresh token if mfa is eanbled (Error: mfa\_required)

**URL:** <https://community.auth0.com/t/not-able-to-refresh-token-if-mfa-is-eanbled-error-mfa-required/96947>\
**Category:** Get Help\
**Tags:** one-time-password-otp-factor, mfa\
**Created:** [December 22, 2022, 3:50am UTC](https://community.auth0.com/t/not-able-to-refresh-token-if-mfa-is-eanbled-error-mfa-required/96947 "2022-12-22T03:50:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 23, 2022, 12:15am UTC](https://community.auth0.com/t/not-able-to-refresh-token-if-mfa-is-eanbled-error-mfa-required/96947/2 "2022-12-23T00:15:45Z")

</div>

Hi there @ydeng welcome to the community!

You may want to look into writing an Action that utilizes the `oauth2-refresh-token` property listed under `event.transaction` here:

[https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object)

Some more on what conditional mfa may look like can be found in the following FAQ:

[https://community.auth0.com/t/how-to-enable-mfa-for-a-subset-of-users/87505](https://community.auth0.com/t/how-to-enable-mfa-for-a-subset-of-users/87505)

Hope this helps!

---

_[View the full topic](https://community.auth0.com/t/not-able-to-refresh-token-if-mfa-is-eanbled-error-mfa-required/96947)._
