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.