Lightlines
By next-safe-action

safe-action-middleware

next-safe-action1.2k installs

Build reusable middleware for next-safe-action.

What it does

Guides implementation of next-safe-action middleware for access checks, logging, error handling, and reusable context extension.

When to use it

Use when implementing next-safe-action middleware, including pre-validation and post-validation middleware.

How to use it

It changes how the agent implements middleware in the project, favoring use() unless the logic requires validated input.

What you provide

  • An existing project

Latest review

What you need · 1

The guide works with the next-safe-action package, importing its client and middleware factories.


Access · 0

No additional actions listed.