# Does onLogin Auth0 Action work on refresh token event?

**URL:** <https://community.auth0.com/t/does-onlogin-auth0-action-work-on-refresh-token-event/71098>\
**Category:** Get Help\
**Created:** [October 11, 2021, 6:21am UTC](https://community.auth0.com/t/does-onlogin-auth0-action-work-on-refresh-token-event/71098 "2021-10-11T06:21:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugenez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eugenez/32/16414_2.png) [@eugenez](https://community.auth0.com/u/eugenez)\
**Post date:** [October 11, 2021, 6:21am UTC](https://community.auth0.com/t/does-onlogin-auth0-action-work-on-refresh-token-event/71098/1 "2021-10-11T06:21:20Z")

</div>

In my system design, it is very important to add some data into Auth0 accessToken. I found how I can do that using Actions. I can see that there are actions for post Login and post Sign Up, the only thing that concerns me, Is on login Auth0 Action working on refresh token event? If not, is there some action or hook, which allows me to add some data into the token on each token refresh event?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 11, 2021, 5:08pm UTC](https://community.auth0.com/t/does-onlogin-auth0-action-work-on-refresh-token-event/71098/3 "2021-10-11T17:08:25Z")

</div>

Hi @eugenez

Welcome to the Auth0 Community!

Yes, a login action will run on a refresh token request. You can differentiate between the types of transactions by looking at the `event.transaction` property.

> **[Actions Triggers: post-login - Event Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object)**
>
> Learn about the post-login Action trigger's event object, which provides contextual information about a single user logging in via Auth0.

---

<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 26, 2021, 5:08pm UTC](https://community.auth0.com/t/does-onlogin-auth0-action-work-on-refresh-token-event/71098/4 "2021-10-26T17:08:36Z")

</div>

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