Hooks
usePasskeyRecovery
Summary
Used to manually open the recovery flow and let a user create a new passkey so they can recover their account.
Usage
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?