Axinom Mosaic Libraries
    Preparing search index...

    Function permissionsMiddleware

    • Ensures that the subject contains the required permissions to execute the message handler

      Type Parameters

      • TContent = unknown

      Parameters

      • permissions: string[]

        the list of permissions that allow to use that message handler

      • serviceId: string

        the service ID of this service

      Returns OnMessageMiddleware<TContent>