# PostLogin action runs before MFA challenge

**URL:** <https://community.auth0.com/t/postlogin-action-runs-before-mfa-challenge/85876>\
**Category:** Get Help\
**Created:** [June 24, 2022, 1:13pm UTC](https://community.auth0.com/t/postlogin-action-runs-before-mfa-challenge/85876 "2022-06-24T13:13:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodri](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rodri/32/38359_2.png) [@rodri](https://community.auth0.com/u/rodri)\
**Post date:** [June 24, 2022, 1:13pm UTC](https://community.auth0.com/t/postlogin-action-runs-before-mfa-challenge/85876/1 "2022-06-24T13:13:12Z")

</div>

Hi,

I’m using universal login flow with sms MFA enabled. I also have a post login action for some custom business logic. However the post login action is run before the user is challenged for MFA. In my mind this doesn’t make sense as post login should include MFA as well. Is there a way to make the action run after SMS mfa?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [June 24, 2022, 1:29pm UTC](https://community.auth0.com/t/postlogin-action-runs-before-mfa-challenge/85876/2 "2022-06-24T13:29:43Z")

</div>

Hi @rodri

This is the correct behavior. To be able to implement conditional MFA, the post login action chain has to run BEFORE MFA.

John

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 28, 2022, 12:54pm UTC](https://community.auth0.com/t/postlogin-action-runs-before-mfa-challenge/85876/3 "2022-07-28T12:54:19Z")

</div>


