`UpdateRecoveryFlow:` Hi, we are trying to add pas...
# talk-kratos
g
UpdateRecoveryFlow:
Hi, we are trying to add password recovery by using CreateNativeRecoveryFlow. After that calling UpdateRecoveryFlow, in this step and email is sent to the user. The problem is when want to use the code that is sent to the user email address to verify that they own the email. So, this time again calling UpdateRecoveryFlow by providing the code as input. But, get the error: browser_location_change_required! (We are using Ory Kratos, but not with browser)
b
Hi, the recovery flow is unfortunately not yet fully supported on native devices. We have it on the roadmap but are focusing on some more pressing things, at the moment. See also https://github.com/ory/kratos/discussions/2959#discussioncomment-4643625
g
Basically, we are using .Net and providing APIs to our Frontend project which is in React. That why we use the Native APIs. We have our own UI. Any suggestions for this case?
b
Unfortunately, the browser is required for the recovery flow, right now. You could parse the URL contained in the
browser_location_change_required
and use that
flowId
to fetch the
settings
flow and render that.
Don’t do this, it requires a session token, which is not available here yet.
g
How can I fetch the setting flow by recovery flow id?
g
Where can I get the X-Session-Token to pass it to GetSettingsFlow?
I have the FlowId from UpdateRecoverySettings. But can't find any session token
b
I just tested this, and it seems it’s not possible. Sorry. I think I was too fast recommending the parsing the URL. I don’t think it’s possible to implement the recovery on native clients for now. Sorry.