Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 724 Bytes

File metadata and controls

39 lines (26 loc) · 724 Bytes
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

import { useAddPasskey } from "@alchemy/react";

Usage

import { useAddPasskey } from "@alchemy/react";

function AddPasskeyForm() {
  const { addPasskey, isPending } = useAddPasskey();
}

Parameters

parameters

UseAddPasskeyParameters

  • Configuration options for the hook

Returns

UseAddPasskeyReturnType TanStack Query mutation object