Cotal TypeScript packages
    Preparing search index...

    Function openSessionAuthStore

    • Open the per-space auth store and PROVE its security-critical shape, not merely that some bucket exists. Kvm.open binds lazily, so this forces the bind AND inspects the backing stream config: the store MUST be allow_direct=false (every read here is an authority read treated as leader-served by construction; a Direct-Get-capable bucket would let release/close/connect decisions read follower-stale, §13.1), MUST carry NO age eviction (bucket-wide OR per-message TTL — an age-evicted session./gate authority key silently drops a fence, §13.12), and MUST NOT be a mirror/sourced stream (a mirror is a follower copy). A config-drifted bucket fails loud HERE, never at the first authority read. Returns the BRANDED store the hooks/close/sweep seams consume.

      Parameters

      • nc: NatsConnection
      • space: string

      Returns Promise<SessionAuthStore>