Optionalrequired?: booleanAccepted for config-shape consistency, but ignored because identity is not read when tenant partitioning is disabled.
Disable identity-based partitioning entirely.
Optionaluser?: falseUser partitioning is not available when tenant partitioning is off.
Optionalrequired?: booleanRequire the scoped identity fields to exist.
Defaults to true. Set to false when identity should only refine the
key when available.
Enable tenant partitioning for middleware-managed state.
Optionaluser?: booleanAppend userId after tenantId when it exists.
When required is not set to false, userId becomes mandatory.
Controls whether identity-aware middleware partitions its internal state by the active identity payload.
Omit the option to use default automatic tenant partitioning when identity exists. Provide
{ tenant: true }to require tenant partitioning explicitly. Provide{ tenant: false }to disable identity-based partitioning entirely. Adduser: truefor<tenantId>:<userId>:...partitioning. Setrequired: falsewhen identity should refine the key only when present.