I am building out a custom UI for registration and...
# talk-kratos
a
I am building out a custom UI for registration and need to handle two flows, a migration from an old identity system and an invitation only registration flow. For both flows, when navigating to my login url, I pass query parameters to the route. However, when submitting data to Kratos using the form post, if an error occurs, kratos redirects back to my registration route with only the flow query param. Is it possible to configure Kratos to pass the same query back, pass the custom input fields back, or something else to save the state of these additional fields? Should I be putting them on my identity model? I wouldn’t think so since they are irelevent after registration.
I’ve already looked at the customize login/registration docs as well as the flow interrupting webhooks doc, but neither actually discusses this passing of additional data via the UI generated form
I decided I could use the error message context to supply my UI with the invitation code and supply logic on the front end to read the code back.