# Passing Custom Data from loginWithRedirect to PostLogin Action

**URL:** <https://community.auth0.com/t/passing-custom-data-from-loginwithredirect-to-postlogin-action/109862>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [June 23, 2023, 12:28pm UTC](https://community.auth0.com/t/passing-custom-data-from-loginwithredirect-to-postlogin-action/109862 "2023-06-23T12:28:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidstellini](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidstellini/32/48275_2.png) [@davidstellini](https://community.auth0.com/u/davidstellini)\
**Post date:** [June 23, 2023, 12:28pm UTC](https://community.auth0.com/t/passing-custom-data-from-loginwithredirect-to-postlogin-action/109862/1 "2023-06-23T12:28:59Z")

</div>

Hello, Auth0 Community!

I’m currently implementing Auth0 for user authentication in my application, using the `loginWithRedirect` method on the frontend. I’m trying to find a way to pass custom data from this frontend method to a PostLogin Action.

Here’s a high-level overview of what I’m attempting to do:

1. User initiates an authentication transaction on the frontend.
2. As part of this transaction, I want to capture and send some additional custom data (not just the standard authentication data).
3. After the user successfully authenticates, a PostLogin Action is triggered.
4. In this PostLogin Action, I want to access and utilize the custom data I captured on the frontend during step 2.

The PostLogin Action event object provides a wide range of information about the authentication transaction, but none of these properties seem intended for passing custom data directly from the client to the backend.

My question is: How can I pass this custom data from the frontend `loginWithRedirect` method to the PostLogin Action? Are there any recommended best practices or workarounds for this type of data passing in Auth0?

Thank you for any help or guidance you can provide!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 27, 2023, 12:42pm UTC](https://community.auth0.com/t/passing-custom-data-from-loginwithredirect-to-postlogin-action/109862/3 "2023-06-27T12:42:55Z")

</div>

Hi @davidstellini,

Welcome to the Auth0 Community!

> [@davidstellini](#):
>
> How can I pass this custom data from the frontend `loginWithRedirect` method to the PostLogin Action? Are there any recommended best practices or workarounds for this type of data passing in Auth0?

You can pass data to an Action by including it in the the request’s query params. You can then use the `event.request.query` property to access those params in your Action.

Please let me know if you have any questions!

---

<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:** [July 26, 2023, 3:20pm UTC](https://community.auth0.com/t/passing-custom-data-from-loginwithredirect-to-postlogin-action/109862/4 "2023-07-26T15:20:52Z")

</div>

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