# How to pass the data back to Action from React

**URL:** <https://community.auth0.com/t/how-to-pass-the-data-back-to-action-from-react/136366>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [June 14, 2024, 10:40am UTC](https://community.auth0.com/t/how-to-pass-the-data-back-to-action-from-react/136366 "2024-06-14T10:40:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nayan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nayan](https://community.auth0.com/u/nayan)\
**Post date:** [June 14, 2024, 10:40am UTC](https://community.auth0.com/t/how-to-pass-the-data-back-to-action-from-react/136366/1 "2024-06-14T10:40:40Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
I am using React for frontend with Redirect with Actions and I have gone through the documentation. how to send the data back to actions. Here, it mentioned that we should use management API but how to do that from frontend? I want to do this from frontend without creating backend API

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

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [March 13, 2025, 4:04pm UTC](https://community.auth0.com/t/how-to-pass-the-data-back-to-action-from-react/136366/3 "2025-03-13T16:04:22Z")

</div>

Hi @nayan,

Welcome to the Auth0 Community and sorry for the late reply.

You are still able to use the above mentioned documentation even though you do not have a pre-configured backend API, since the data is being transferred using a signed session token, so that:

_The token will be validated to ensure that:_

- _The signature is valid._
- _The token is not expired._
- _The state claim within the token matches the state parameter used as part of the redirect._

This [Knowledge Article](https://community.auth0.com/t/implementing-a-redirect-with-actions-and-passing-data-back-to-auth0/123118) provides more information.

However, as mentioned in our docs as well, passing information back and forth in the front channel might open up surface area for bad actors to attack, so that is why a backend is recommended for sending information securely.

Another option would still be using the [AuthorizationParams](https://auth0.github.io/auth0-react/interfaces/AuthorizationParams.html) from the React SDK if you want to send custom parameters to the Authorization Server. This community post explains the details :

- [Passing custom parameters to Auth0 Actions from New Universal Login](https://community.auth0.com/t/passing-custom-parameters-to-auth0-actions-from-new-universal-login/117148)

I hope this helps your use case, but others as well.  
Thanks,  
Remus

---

<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:** [March 27, 2025, 4:05pm UTC](https://community.auth0.com/t/how-to-pass-the-data-back-to-action-from-react/136366/4 "2025-03-27T16:05:18Z")

</div>

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