hubSignOut
uses localStorage
Sign out: here, on the account's server, and to the hub; the page is shown again, as anyone's.
import { hubSession, SIGNED_IN, signedInHere } from "#codebase/tcmts/hub/session"; export async function hubSignOut(): Promise<void> { const s = await hubSession(); await s?.signOut(); localStorage.removeItem(SIGNED_IN); await signedInHere(undefined); location.reload(); }