Getting access token & refresh token in actions

Hi,
We are trying to migrate from rules to actions. We want to get the Access Token and Refresh token for a user in an action.
We got the access token via Auth0 Management API, but we can’t get the refresh token as we cannot enable Offline Access for Auth0 Management API.
Please suggest how to get the refresh token. Do we need to create a custom API? If yes, how do we use it.

Regards,
Sandeep

Hey @skumar27 welcome to the community!

Is your rule able to achieve this functionality?

While you can certainly enrich user tokens (ID and access) via an action, you can’t “get” them as they are minted once the Login Action completes.

Outside of the scope of actions, you can learn more about getting refresh tokens here.

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