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

    Interface IdentityContextValue

    Value carried by asyncContexts.identity.

    This built-in context is the default runtime identity grouper. Apps can also define their own r.asyncContext(...).configSchema(...) accessor and pass it to run(..., { identity }) when they want a custom runtime identity source.

    interface IdentityContextValue {
        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.