registrySignOut

tcmts.registry.session.registrySignOut · #uscmclhl · term · runs in the browser

uses localStorage

Sign out: here, on the account's server, and to the registry; the page is shown again, as anyone's.

import { registrySession, SIGNED_IN, signedInHere } from "#codebase/tcmts/registry/session";

export async function registrySignOut(): Promise<void> {
  const s = await registrySession();
  await s?.signOut();
  localStorage.removeItem(SIGNED_IN);
  await signedInHere(undefined);
  location.reload();
}

uses

used by