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