<@U04UQ68083H> is the recovery flow supported in r...
# ory-copilot
a
@chilly-king-10285 is the recovery flow supported in react native?
c
A message from kapa.ai
Yes, the recovery flow is supported in React Native. Ory provides a set of tools and protocols that can be used to secure and manage user identities, permissions, and access to resources, including the recovery flow. The recovery flow allows users to recover access to their accounts and is used in conjunction with the settings flow. In the context of React Native, you would need to use the correct API endpoints for your application type. For native applications, you must use
/self-service/recovery/api
. Here is an example of how to create a recovery flow in React Native:
Copy code
jsx import { Configuration, FrontendApi } from "@ory/client"  const frontend = new FrontendApi(  new Configuration({    basePath: `https://${process.env.ORY_PROJECT_SLUG}.<http://projects.oryapis.com|projects.oryapis.com>`,  }), )  export async function createRecovery() {  return await frontend.createNativeRecoveryFlow() }
For more details, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-basic-integration#create-recovery-flow).