# Post MFA action possible?

**URL:** <https://community.auth0.com/t/post-mfa-action-possible/147492>\
**Category:** Get Help\
**Tags:** extensibility, actions-extensibility\
**Created:** [September 18, 2024, 6:17pm UTC](https://community.auth0.com/t/post-mfa-action-possible/147492 "2024-09-18T18:17:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shubham2/32/51177_2.png) [@shubham2](https://community.auth0.com/u/shubham2)\
**Post date:** [September 18, 2024, 6:17pm UTC](https://community.auth0.com/t/post-mfa-action-possible/147492/1 "2024-09-18T18:17:00Z")

</div>

Is it in anyway possible to run some code after user has submitted the OTP from the MFA prompt?

Something similar to the existing “Post login action”, perhaps?

---

<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:** [September 19, 2024, 5:57pm UTC](https://community.auth0.com/t/post-mfa-action-possible/147492/3 "2024-09-19T17:57:58Z")

</div>

Hi @shubham2,

You can use a Post-Login script to trigger MFA using the `api.multifactor.enable()` method. Then, within the same or in another script, you can include the code that you want to run.

I suggest checking out our Post Login action script documentation below:

> **[Login Flow](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow#enforce-custom-mfa-policy)**
>
> Learn about the Actions Login Flow and the post-login Action trigger, which is executed after a user logs in and when a Refresh Token is requested.

Thanks,  
Rueben

---

<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:** [October 3, 2024, 5:58pm UTC](https://community.auth0.com/t/post-mfa-action-possible/147492/4 "2024-10-03T17:58:25Z")

</div>

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