Mutations
useRevokeSession
Revoke one active session for the current user.
Usage
import { revokeSessionOptions } from "@better-auth-ui/core"
import { useMutation } from "@tanstack/solid-query"
const revokeSession = useMutation(() => revokeSessionOptions(authClient))
revokeSession.mutate({ token: "session-token" })Cache
Refetch listSessions after revocation.
Params
Prop
Type
Last updated on