How to pass the data back to Action from React

Ready to post? :mag: 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

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 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 from the React SDK if you want to send custom parameters to the Authorization Server. This community post explains the details :

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

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