Body, Mind & Soul — API Reference
    Preparing search index...

    Function setRepresentingState

    • Set a user's state for an actor to one of "uncontrolled" | "controlled" | "impersonated". When transitioning FROM "uncontrolled" to "controlled"/"impersonated", evicts every other user currently holding ANY state on this actor (generalizes the prior eviction logic). Self-transitions (controlled<->impersonated, or release to uncontrolled for the SAME user) never evict anyone else.

      Parameters

      • user: User
      • actor: Actor
      • nextState: "controlled" | "impersonated" | "uncontrolled"

      Returns Promise<void>