Setu-TS
    Preparing search index...

    Function tenantBindingMismatch

    • The pure tenant-binding compare shared by the two compare sites (M101c, V8-7): the session middleware's load-time compare and the multi-tenancy middleware's tenant-side compare.

      A mismatch is only possible when BOTH sides carry a tenant: an unbound session (no binding sealed yet) or a tenant-less request (no tenancy in effect) is inert — nothing is compared, so an application without tenancy is unaffected.

      Parameters

      • session: ISession

        The session to read the binding from

      • tenantId: string | undefined

        The tenant id resolved for the request, or undefined

      Returns boolean

      true when the session is bound to a DIFFERENT tenant than the one resolved for the request

      0.9.0