rich-piano-74589
01/16/2024, 2:40 PMchilly-king-10285
01/16/2024, 2:40 PMchilly-king-10285
01/16/2024, 2:40 PMGET /self-service/recovery/browser
endpoint. This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to selfservice.flows.recovery.ui_url
with the flow ID set as the query parameter ?flow=
. Here is an example of how to use this endpoint with cURL: bash curl -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -c cookies.txt \ "https://{project.slug}.<http://projects.oryapis.com/self-service/recovery/browser|projects.oryapis.com/self-service/recovery/browser>"
Please replace {project.slug}
with your actual project slug. Remember, if a valid user session exists, the browser is returned to the configured return URL. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects or a 400 bad request error if the user is already authenticated. This endpoint is not intended for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. For more information, you can refer to the [Ory Kratos Account Recovery Documentation](https://www.ory.sh/docs/kratos/reference/api#tag/frontend/operation/createBrowserRecoveryFlow). Please note that the actual UI for the recovery flow needs to be implemented by you, as Ory Kratos only provides the backend for these flows.rich-piano-74589
01/16/2024, 2:43 PMchilly-king-10285
01/16/2024, 2:44 PMchilly-king-10285
01/16/2024, 2:44 PM