BETTER-AUTH. UI
Mutations

useCheckSlug

Check whether an organization slug is available.

Organization mutations require organizationClient() on the Better Auth client.

Usage

import { authClient } from "@/lib/auth-client"
import { useCheckSlug } from "@better-auth-ui/react/plugins/organization"

const mutation = useCheckSlug(authClient)

mutation.mutate(/* params */)

Options factory

import { checkSlugOptions } from "@better-auth-ui/core/plugins/organization"
import { useMutation } from "@tanstack/react-query"

const mutation = useMutation(checkSlugOptions(authClient))

Params

Prop

Type

Last updated on

On this page