BETTER-AUTH. UI
Mutations

deleteApiKeyOptions

Delete an API key for the current user.

Requires the Better Auth API key plugin.

Usage

import { deleteApiKeyOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"

const deleteApiKey = createMutation(() => deleteApiKeyOptions(authClient))

deleteApiKey.mutate({ keyId: "api-key-id" })

Params

Prop

Type

Last updated on

On this page