I'm really excited about what this package does, but middlwares/auth etc are something we don't have patterns for yet as it's very early. What do you think of defining "middleware stacks" once and reusing them, something like "protectedProcedure" in tRPC. Imagine zact taking in a list of functions to execute before the action as a stack, and the stack is reusable. It'll just chain predefined function calls together to give you a typesafe middleware stacks
I'm really excited about what this package does, but middlwares/auth etc are something we don't have patterns for yet as it's very early.
What do you think of defining "middleware stacks" once and reusing them, something like "protectedProcedure" in tRPC.
Imagine zact taking in a list of functions to execute before the action as a stack, and the stack is reusable.
It'll just chain predefined function calls together to give you a typesafe middleware stacks