import { useContext } from "react" import { AuthQueryContext, type AuthQueryOptions } from "../../lib/auth-query-provider" import type { AuthClient } from "../../types/auth-client" import { useAuthMutation } from "../shared/use-auth-mutation" export function useDeletePasskey( authClient: TAuthClient, options?: Partial ) { const { listPasskeysKey: queryKey } = useContext(AuthQueryContext) return useAuthMutation({ queryKey, mutationFn: authClient.passkey.deletePasskey, options }) }