Mutations
useCheckOrganizationSlug
Check whether an organization slug is available.
Usage
import { useCheckOrganizationSlug } from "@better-auth-ui/solid"
const mutation = useCheckOrganizationSlug(authClient)
mutation.mutate(/* params */)Organization mutations require organizationClient() on the Better Auth client. They attach the same meta.invalidates / meta.awaits cache metadata used by upstream React, and the Solid AuthProvider installs a mutation invalidator that refreshes affected organization/session caches after successful auth mutations.
Options factory
import { checkOrganizationSlugOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"
const mutation = createMutation(() => checkOrganizationSlugOptions(authClient))Params
Prop
Type
Last updated on