๐ Stablecoin Accounts are live! Learn more
Overview & Setup
Providers & Connectors
UI Components
Hooks
- Hooks Introduction
- Core Hooks
- Login & User Management
- Wallets
- Embedded Wallets
- Funding
Events
- Events Introduction
- Dynamic Events
- Event Callbacks
Objects & Utilities
- React Objects Introduction
- Objects
- Utilities
Embedded Wallets
usePasskeyRecovery
Summary
Used to manually open the recovery flow and let a user create a new passkey so they can recover their account.
Usage
Copy
Ask AI
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('[email protected]')}></button>;
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.