# Passing data from Action to the consuming client app

**URL:** <https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726>\
**Category:** Get Help\
**Created:** [November 7, 2021, 2:36pm UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726 "2021-11-07T14:36:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil-varma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nikhil-varma/32/32270_2.png) [@nikhil-varma](https://community.auth0.com/u/nikhil-varma)\
**Post date:** [November 7, 2021, 2:36pm UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726/1 "2021-11-07T14:36:33Z")

</div>

Hello,

I am using a action which Auth0 provides and was wondering if there is any way to pass data from the Action right back to the app that is configured. I am not looking at setting metadata or something but want to pass back an object to the app post login/registration from the action. This data is basically coming from an API call to an external system. Instead of first logging-in and then shooting the call from the app, I was thinking of using Actions to streamline this. If this is not the right approach, I am open to hearing the best practice for such a use-case. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 8, 2021, 12:38am UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726/2 "2021-11-08T00:38:29Z")

</div>

Hi @nikhil-varma

Thank you for contacting Auth0 Community !!!

May I ask what that external system is? and what kind of data are you trying to send back to your app ? An example will be a great start.

Thank you  
Jeff

---

<div class="post-metadata">

**Author:** ![nikhil-varma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nikhil-varma/32/32270_2.png) [@nikhil-varma](https://community.auth0.com/u/nikhil-varma)\
**Post date:** [November 8, 2021, 6:17pm UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726/3 "2021-11-08T18:17:38Z")

</div>

Hey @jeff0 Thanks for the quick reply!

I have a Swell account and am calling an API to get Swell subscription inside the Post Login action. I was thinking to get the subscription object obtained from Swell right after the user logs-in into the app via the Action so that I can control related UI functionality.

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 11, 2021, 9:51am UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726/4 "2021-11-11T09:51:41Z")

</div>

Hi @nikhil-varma

You can pass the custom claims in a session token to your app. Follow this guide on how to [Action Session Token](https://auth0.com/docs/actions/triggers/post-login/redirect-with-actions#pass-data-to-the-external-site)

Hope it helps

Thanks  
Jeff

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 12, 2021, 7:52am UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726/5 "2021-11-12T07:52:24Z")

</div>

Thanks for helping on this one Jeff!

---

<div class="post-metadata">

**Author:** ![nikhil-varma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nikhil-varma/32/32270_2.png) [@nikhil-varma](https://community.auth0.com/u/nikhil-varma)\
**Post date:** [November 22, 2021, 6:57am UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726/6 "2021-11-22T06:57:02Z")

</div>

Thanks @jeff0 Will try it out

---

<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:** [December 7, 2021, 6:57am UTC](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726/7 "2021-12-07T06:57:54Z")

</div>

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