> ## Documentation Index
> Fetch the complete documentation index at: https://dynamic-docs-feat-sidebar-revamp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# usePasskeyRecovery

### Summary

Used to manually open the recovery flow and let a user create a new passkey so they can recover their account.

### Usage

```jsx
import { usePasskeyRecovery } from "@dynamic-labs/sdk-react-core";

const { initPasskeyRecoveryProcess, addRecoveryEmail } = usePasskeyRecovery();

// Opens the recovery flow UI
<button onClick={() => initPasskeyRecoveryProcess()}></button>;

// Adds a recovery email
<button onClick={() => addRecoveryEmail('recovery-email@gmail.com')}></button>;
```
