registrySession
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
- tcmts.registry.session.RegistrySession
- tcmts.registry.session.pageSession
- tcmts.registry.session.resumeSession