Mutations
createApiKeyOptions
Create an API key for the current user.
Requires the Better Auth API key plugin.
Usage
import { createApiKeyOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"
const createApiKey = createMutation(() => createApiKeyOptions(authClient))
createApiKey.mutate({ name: "CLI" })Params
Prop
Type
Last updated on