# How to include authentication token in Redirect Response

**URL:** <https://community.auth0.com/t/how-to-include-authentication-token-in-redirect-response/95824>\
**Category:** Get Help\
**Created:** [December 6, 2022, 7:27pm UTC](https://community.auth0.com/t/how-to-include-authentication-token-in-redirect-response/95824 "2022-12-06T19:27:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kewong](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kewong/32/33237_2.png) [@kewong](https://community.auth0.com/u/kewong)\
**Post date:** [December 6, 2022, 7:27pm UTC](https://community.auth0.com/t/how-to-include-authentication-token-in-redirect-response/95824/1 "2022-12-06T19:27:00Z")

</div>

Hi A0 Community,

I am creating a post login event to redirect to another A0 app conditionally. However the authenticaiton token is not included in response. How do I do that?

exports.onExecutePostLogin = async (event, api) =\> {  
api.redirect.sendUserTo(‘another A0 app’)  
}

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [December 26, 2022, 9:36pm UTC](https://community.auth0.com/t/how-to-include-authentication-token-in-redirect-response/95824/5 "2022-12-26T21:36:07Z")

</div>

Hi @kewong ,

I noticed that you opened a support ticket for the same issue. Below is the solution provided by our DSE. Hopefully it’s beneficial to other community members.

To pass the information back to the Action, please try steps in this article:

Pass data to external site:

> **[Redirect with Actions](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions#pass-data-to-the-external-site)**
>
> Learn how to use post-login Actions to redirect users before an authentication transaction is complete.

Pass information back:

> **[Redirect with Actions](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions#pass-information-back-to-the-action)**
>
> Learn how to use post-login Actions to redirect users before an authentication transaction is complete.

---

<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:** [January 9, 2023, 9:36pm UTC](https://community.auth0.com/t/how-to-include-authentication-token-in-redirect-response/95824/6 "2023-01-09T21:36:26Z")

</div>

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