Mutations
useAddPasskey
Register a new passkey for the current user.
Requires the Better Auth passkey plugin.
Usage
import { addPasskeyOptions } from "@better-auth-ui/core/plugins/passkey"
import { useMutation } from "@tanstack/solid-query"
const addPasskey = useMutation(() => addPasskeyOptions(authClient))
addPasskey.mutate({ name: "Work laptop" })Params
Prop
Type
Last updated on