registrySession

tcmts.registry.session.registrySession · #dfeh4epi · term · runs in the browser

uses tcmts.registry.session.resumeSession, which uses localStorage

Who this browser is signed in as, if anyone (asked once per page).

import { pageSession, resumeSession } from "#codebase/tcmts/registry/session";
import type { RegistrySession } from "#codebase/tcmts/registry/session";

export function registrySession(): Promise<RegistrySession | undefined> {
  pageSession.current ??= resumeSession();
  return pageSession.current;
}

uses

used by