| title | useAddPasskey |
|---|---|
| description | Overview of the useAddPasskey method |
| slug | wallets/reference/alchemy/react/hooks/useAddPasskey |
React hook for adding a passkey to an already authenticated account.
This hook uses the addPasskey mutation to add a passkey to the authenticated account.
import { useAddPasskey } from "@alchemy/react";import { useAddPasskey } from "@alchemy/react";
function AddPasskeyForm() {
const { addPasskey, isPending } = useAddPasskey();
}UseAddPasskeyParameters
- Configuration options for the hook
UseAddPasskeyReturnType
TanStack Query mutation object