Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Pattern to use middlewares #24

@KaviiSuri

Description

@KaviiSuri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions