Function ory_client::apis::v0alpha2_api::initialize_self_service_recovery_flow_for_browsers[][src]

pub async fn initialize_self_service_recovery_flow_for_browsers(
    configuration: &Configuration,
    return_to: Option<&str>
) -> Result<SelfServiceRecoveryFlow, Error<InitializeSelfServiceRecoveryFlowForBrowsersError>>
Expand description

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=. 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. More information can be found at Ory Kratos Account Recovery Documentation.