superpowers-sage:acorn-middleware

Enforce JWT or custom guard authentication on Acorn routes.

13|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/codigodoleo/superpowers-sage --skill superpowers-sage-acorn-middleware
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: superpowers-sage:acorn-middleware
Source: https://github.com/codigodoleo/superpowers-sage/tree/main/skills/acorn-middleware
Command: npx skills add https://github.com/codigodoleo/superpowers-sage --skill superpowers-sage-acorn-middleware

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Implement robust authentication and authorization for Acorn-based WordPress/Sage apps by introducing JWT-based middleware and guards, enabling consistent access control across API and web routes.

Core Features & Use Cases

  • JWT-authenticated middleware for Acorn routes to protect API endpoints and web routes
  • Custom WordPress guard integration to unify WP and Acorn authentication flows
  • Easy registration in the HTTP Kernel and route groups to apply guards and rate-limiting
  • Starter templates and scripts to scaffold middleware quickly and reliably

Quick Start

Install the generated middleware in your Acorn project and apply it to protected routes.

Frequently Asked Questions about superpowers-sage:acorn-middleware

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure Acorn routes with JWT authentication in WordPress?

Acorn routes are secured with JWT authentication by registering custom middleware in the HTTP Kernel and applying it selectively to specific endpoints or route groups. This enforces consistent access control across both web and API contexts within a Sage environment.

What's the best way to add custom guards to Acorn route groups?

The best way to add custom guards to Acorn route groups is by integrating WordPress guard logic with JWT middleware. You can register the guards in the HTTP Kernel and apply them selectively to individual endpoints or route groups to unify authentication flows.

Does JWT middleware work with Acorn-enabled WordPress and Sage environments?

JWT middleware works specifically with Acorn-enabled WordPress and Sage environments. It requires a registered middleware class and proper kernel configuration to enforce authentication and apply access control to protected web and API routes.

How do I apply rate-limiting and authentication to individual Acorn endpoints?

You apply rate-limiting and authentication to individual Acorn endpoints by registering JWT middleware and custom guards in the HTTP Kernel. The middleware can then be selectively assigned to specific endpoints or route groups for granular access control.

Can I unify WordPress and Acorn authentication flows using middleware?

You can unify WordPress and Acorn authentication flows using custom WordPress guard integration. By introducing JWT-based middleware and guards, the system enables consistent authorization and access control across both native WP and Acorn application routes.

Why does my Acorn middleware fail to protect web routes without kernel configuration?

Acorn middleware fails to protect web routes without kernel configuration because the system requires a registered middleware class properly configured in the HTTP Kernel. This setup is necessary to enforce authentication and selectively apply guards across API and web contexts.