hubSignOut

tcmts.hub.session.hubSignOut · #lm56btwq · term · runs in the browser

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();
}

uses

used by