Replies: 1 comment 8 replies
-
Hello @akhayyat you are using the right feature, that is exactly what transient_payload field is designed for. To pass additional data to the flow using the optional transient_payload field, you need to include it in the POST request payload when submitting the registration form. This data gets forwarded to webhooks without being persisted by Ory like identity traits do. If the object is empty or there is a JSON decode error there is probably some issue in your code. For example from our tests:
|
Beta Was this translation helpful? Give feedback.
8 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I'm trying to get additional data in the registration form in my server-side web application using transient payload, as documented in https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-basic-integration and https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks.
I have an HTML form input like this:
However, this results in a
transient_payload
value of{}
(empty object).I've also tried setting the name of the HTML
input
to justtransient_payload
:which results in the error:
Error: Unable to decode JSON payload
. Also, this would not allow me to control the name of the input, or adding additional inputs to be picked up by my webhook.So, how do I pass additional inputs in the registration form to be picked up by a webhook during registration, without persisting them in Ory?
Beta Was this translation helpful? Give feedback.
All reactions