Cotal TypeScript packages
    Preparing search index...

    Function soleSpaceOf

    • The ONE space this auth dir holds, for the legacy paths that predate multi-space and carry no explicit space (a folder's "its own" space, a root-wide daemon remint). Undefined when the root has no auth at all.

      FAILS LOUD when the root holds several, rather than picking the first or a "current": a space-blind caller that silently picks is exactly how a component bound to space B mints into space A's account. Callers that can know their space must pass it explicitly instead of using this; this exists so the remaining space-blind paths become a loud error rather than a wrong answer the day a root holds two.

      Parameters

      • dir: string

      Returns string | undefined