BETTER-AUTH. UI
Mutations

useUpdateOrganization

Update organization name, slug, or logo data.

Usage

import { useUpdateOrganization } from "@better-auth-ui/solid"

const mutation = useUpdateOrganization(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 { updateOrganizationOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"

const mutation = createMutation(() => updateOrganizationOptions(authClient))

Params

Prop

Type

Last updated on

On this page