orange-addition-12648
02/13/2023, 8:06 PMflow
or id
parameter for a flow id. I've been referencing the pages from the react implementation (https://github.com/ory/kratos-selfservice-ui-react-nextjs/blob/master/pages/registration.tsx) to see which additional query parameters are expected (such as return_to
, etc.).
It appears there are some gaps though. For example, when kratos sends a verification email, the link contains a code
parameter which I'd like to autofill when given. This parameter does not appear in the reference app and I haven't been able to find any docs for it. I'm concerned I might be missing important parameters that appear on other flows.
Is there documentation for the expected set of query parameters that can appear in links generated by Kratos that must be supported by the frontend? If not, is there a place I should look in the code to make sure I have all the bases covered?orange-addition-12648
02/13/2023, 8:25 PMurl.Value
and urlx.CopyWithQuery
has been somewhat fruitful in looking for the expected API. I haven't found anything besides code
, but I'm still unsure I got everythingmagnificent-energy-493
bland-eye-99092
02/15/2023, 1:50 PMcode
query param is just used by Kratos directly, as the link in the email should point to your Kratos instance (not your own UI). Kratos will then redirect the user’s browser to your UI with a flow
parameter set so you can fetch & render the flow.
The code
is then “pre-filled” in the ui
nodes returned by Kratos, via the value
attribute. If you implemented rendering the nodes with all it’s attributes this should just work.
The docs could be a bit clearer on this, for sure.orange-addition-12648
02/15/2023, 4:32 PM