BETTER-AUTH. UI
Mutations

signOutOptions

Sign-out mutation options.

Options factory

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

const signOut = createMutation(() => signOutOptions(authClient))
signOut.mutate()

The raw options factory does not perform React hook cache cleanup automatically. After sign-out, remove or invalidate authQueryKeys.all in your onSuccess handler so user-scoped data leaves the cache.

Params

Prop

Type

Last updated on

On this page