Native recovery flow error with code strategy #2959
-
Hi there, I'm currently using the new code strategy for account recovery. I confirmed that I have upgraded to using Kratos v0.11 with the new v1.1 JavaScript SDK. I'm initializing the flow using The problem here is I can't complete the recovery flow with the code that I got from the email, on submission I called updateRecoveryFlow({
flow: flow.id,
updateRecoveryFlowBody: {
method: 'code',
email,
code,
},
}) With the {
error: {
id: 'browser_location_change_required',
code: 422,
status: 'Unprocessable Entity',
reason: 'In order to complete this flow please redirect the browser to: http://127.0.0.1:3000/recovery?flow=fb058b5f-43d3-435d-b5d0-bd01a93968ac',
message: 'browser location change required'
},
redirect_browser_to: 'http://127.0.0.1:3000/recovery?flow=fb058b5f-43d3-435d-b5d0-bd01a93968ac'
} Am I doing something wrong in the process of recovering or this isn't supported? Thanks for the answer in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 13 replies
-
I'm having the same issue |
Beta Was this translation helpful? Give feedback.
-
To reproduce:
Response:
|
Beta Was this translation helpful? Give feedback.
-
New Ory Network user here, and I'm having the same issue but with |
Beta Was this translation helpful? Give feedback.
-
Hi all! Sorry for the confusion on this topic. The current state of the recovery flow does not support native apps. There are multiple reasons for this:
Lastly, the documentation on the recovery flow has just been reworked, but we failed to include any warnings on this incompatibility, sorry about that. As a workaround, you can implement the recovery flow using a browser window in your app. We know that this is not optimal, and have been thinking about how to solve it for a while, but are also busy with other, pressing things. |
Beta Was this translation helpful? Give feedback.
-
actually I made it working with kratos v1 but can't make it work with kratos v1.1 I guess we'll wait until |
Beta Was this translation helpful? Give feedback.
-
Some time has passed since my initial comment (#2959 (comment)). We have since implemented a fix for the issue here #3624. The way to enable it, is to add the following to your config: feature_flags:
use_continue_with_transitions: true After setting that, instead of returning a |
Beta Was this translation helpful? Give feedback.
Some time has passed since my initial comment (#2959 (comment)).
We have since implemented a fix for the issue here #3624. The way to enable it, is to add the following to your config:
After setting that, instead of returning a
browser_location_change_required
error, Kratos should return a reference to the settings flow, that the user should then use to update their password.