# Is it possible for onExecutePostLogin to execute multiple times?

**URL:** <https://community.auth0.com/t/is-it-possible-for-onexecutepostlogin-to-execute-multiple-times/193267>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [October 16, 2025, 4:20pm UTC](https://community.auth0.com/t/is-it-possible-for-onexecutepostlogin-to-execute-multiple-times/193267 "2025-10-16T16:20:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkrp1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kkrp1](https://community.auth0.com/u/kkrp1)\
**Post date:** [October 16, 2025, 4:20pm UTC](https://community.auth0.com/t/is-it-possible-for-onexecutepostlogin-to-execute-multiple-times/193267/1 "2025-10-16T16:20:47Z")

</div>

(Re-posting this as my last topic was ignored.)

We have a weird scenario whereby it _seems_ (there are other possible explanations) like `onExecutePostLogin` is being called multiple times.

We use this hook to call an endpoint in our app which sends a (home-brewed) 2FA SMS to the user. But for SOME (not all, which is worse) users they’re being sent lots and lots of 2FA messages.

There is no loop in my endpoint. So our current suspicion is that they’re stuck in a loop whereby `onExecutePostLogin` is somehow being called repeatedly as part of the same login flow.

Is this feasible as an explanation, or am I way off?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [October 17, 2025, 6:44pm UTC](https://community.auth0.com/t/is-it-possible-for-onexecutepostlogin-to-execute-multiple-times/193267/3 "2025-10-17T18:44:00Z")

</div>

Hi @kkrp1

If an **Action** does not have the code necessary to trigger a loop OR if the user is not being redirected to the `/authorize` endpoint while being authenticated (each time the **/authorize** endpoint would be accessed, the PostLogin Action Trigger will be executed), an action should not execute multiple times.

From what I understand from your topic, the multiple sms messages might be triggered by your **home-brewed** 2FA SMS.

Could you share your tenant name so I can take a look at your actions or share how you are sending these SMS messages to your users?

Kind Regards,  
Nik

---

<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 31, 2025, 6:44pm UTC](https://community.auth0.com/t/is-it-possible-for-onexecutepostlogin-to-execute-multiple-times/193267/4 "2025-10-31T18:44:21Z")

</div>

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