I recently stumbled upon something in JS (specifically NodeJS and a few other runtimes) that might be of interest here: AsyncLocalStorage (https://nodejs.org/api/async_context.html). It allows for storing data specific to the current asynchronous context. I've been using it primarily for adding logging prefixes and managing authentication in Postgres with Row-Level Security (RLS).
Essentially, it offers a server-side alternative to "prop drilling," where you repetitively pass the same parameter through a chain of function calls.