Saxonberg Server API
    Preparing search index...
    Index

    Methods

    • Resolve the session's acting Avatar and run fn(actor) inside a runRoot frame. Returns whatever fn returns.

      Type Parameters

      • T

      Parameters

      • req: Request

        the Express request (carries the authenticated session)

      • method: string

        a label for the synthetic Root frame (e.g. cms.write)

      • fn: () => Promise<T>

        the work, handed the resolved Avatar (or null)

      Returns Promise<T>