# Why Post Login action is not called after Post Registration action?

**URL:** <https://community.auth0.com/t/why-post-login-action-is-not-called-after-post-registration-action/91436>\
**Category:** Get Help\
**Created:** [September 28, 2022, 6:42am UTC](https://community.auth0.com/t/why-post-login-action-is-not-called-after-post-registration-action/91436 "2022-09-28T06:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![denis.volokh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/denis.volokh/32/35720_2.png) [@denis.volokh](https://community.auth0.com/u/denis.volokh)\
**Post date:** [September 28, 2022, 6:42am UTC](https://community.auth0.com/t/why-post-login-action-is-not-called-after-post-registration-action/91436/1 "2022-09-28T06:42:02Z")

</div>

Hi,

In Post Registration I am assigning default roles to a new user. In Post Login action I update the token with the user’s roles.

Post Login action only works for already existing users but not during registration.

What action or method would you recommend for updating token during registration?

Thanks,  
Denis

---

<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 30, 2022, 4:27pm UTC](https://community.auth0.com/t/why-post-login-action-is-not-called-after-post-registration-action/91436/3 "2022-09-30T16:27:36Z")

</div>

Hi @denis.volokh,

Thanks for reaching out to the Auth0 Community!

I understand you have experienced issues with the Post Login action not triggering for new users.

Before we continue, could you please clarify how you are assigning default roles to a new user? Would you be able to share your Action script for clarity? (Be sure to obfuscate any sensitive information).

Next, I have not been able to reproduce your observations but instead can confirm that the **Post Login** Action scripts execute after the **Post User-Registration** Action scripts. Seeing that, I recommend adding a `console.log()` statement to your Action scripts and using the [Real-time Webtask Logs Extension](https://auth0.com/docs/customize/extensions/real-time-webtask-logs) to verify if your scripts are executing.

Please let me know how this goes for you.

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 14, 2022, 4:27pm UTC](https://community.auth0.com/t/why-post-login-action-is-not-called-after-post-registration-action/91436/4 "2022-10-14T16:27:50Z")

</div>

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