Hello Everyone,
I tried to implement a recovery flow in my React Native application. I use the codes from
https://github.com/ory/kratos-selfservice-ui-react-native project.
But after I send the OTP code in the email, my app crashes with [CoreFoundation]
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported.'.
You can see the response which is coming from ORY network before the crash below.
I think the reason behind this is "redirect_browser_to" parameter. My code follows self service ui implementation without any browser interaction.
I tried to use the same recovery flow with kratos-selfservice-ui-react-native app, it has also crashed with the same exception.
Last response from ORY network:
{
"error": {
"id": "browser_location_change_required",
"code": 422,
"status": "Unprocessable Entity",
"reason": "In order to complete this flow please redirect the browser to: /ui/settings?flow=73c3517c-f4a4-452a-9969-97f0dffda575",
"message": "browser location change required"
},
"redirect_browser_to": "/ui/settings?flow=73c3517c-f4a4-452a-9969-97f0dffda575"
}
Do you have any advise?