I'm trying to implement a user invite flow based on the recovery flow, just as mentioned in the documentation. For the invite, I want a different URL and UI than the usual recovery. In my invite flow, I create an identity and generate a recovery link. Then I send this link to the user myself. I get a /recovery?flow=...token=... url, but because I want my own UI, in my React app I've created a route /invite?=flow=...token=... which then sends an AJAX request to the original /recovery?flow=...token=, then tries to redirect to the settings (and fails since it's AJAX), but does initialize the settings flow and log the user in. So in a sense I can get it to work. However I would have preferred a proper way to do this because this might lead to problems and bugs, but it seems there is no AJAX equivalent to this. I would have expected to be able to send an AJAX request to the same endpoint, and just receive a session cookie and the initialized settings flow ID...