Does onLogin Auth0 Action work on refresh token event?

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?

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.

1 Like

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