Hi all :wave:! I think I need Multiple `ui_flow`'s...
# talk-kratos
b
Hi all 👋! I think I need Multiple `ui_flow`'s for self-service! We're running one Kratos instance which handles login and signup for both our mobile application (React Native) and our web application (React). The mobile app runs
.createNativeLoginFlow()
and allows sign in with our OpenID identity provider – but we don't get all required fields from them, so Kratos redirects back to the
return_url
(our app) without any query params, but creates a registration in the background with a different flow id. How can I access that registration flow ID that Kratos creates, when I only know the flow ID of the (original) login flow? That is, when the user clicks "Login / Sign up". In our web application Kratos properly redirects the user to the
ui_url
but that's obviously not possible in our mobile app.
For users that are already registered there's no issue – then they're returned to our app with a return code that the app together with the init code exchanges for a session token. But for users that are trying to log in but aren't registered, this is obviously an issue. Then they're just looping between the login flow url and the OpenID provider since they'll never get the change to fill in the required fields.