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:
- User initiates an authentication transaction on the frontend.
- As part of this transaction, I want to capture and send some additional custom data (not just the standard authentication data).
- After the user successfully authenticates, a PostLogin Action is triggered.
- 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!