@bluelibs/runner - v6.3.1
    Preparing search index...

    Interface IIdentity

    Minimal identity payload Runner understands for identity-aware framework behavior.

    tenantId and userId are both optional at the ambient context level so apps can establish identity gradually across request/auth boundaries. Middleware that opts into identity partitioning validates the fields it actually needs at use time.

    interface IIdentity {
        roles?: readonly string[];
        tenantId?: string;
        userId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    roles?: readonly string[]

    Optional roles attached to the active identity.

    Runner does not interpret these automatically unless a task identity gate or middleware.task.identityChecker explicitly requests them. If your app models inherited roles, expand the effective role set before binding the identity so the gate sees the right access surface.

    tenantId?: string

    Stable tenant identifier used to partition tenant-aware framework state when present.

    userId?: string

    Stable authenticated user identifier used by user-aware identity scopes when present.