auth_routing
CommunitySecure Next.js apps with proxy routing.
Authorarunoda
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the need for robust authentication and request routing in Next.js applications, ensuring that only authorized users can access protected resources.
Core Features & Use Cases
- Authentication Enforcement: Verifies user sessions via JWT cookies before allowing access to application routes.
- Public Path Management: Allows specific routes (e.g., login, public API endpoints) to be accessed without authentication.
- Request Handling: Intercepts requests to modify headers, perform redirects, or return specific error responses (like 401 for unauthorized API access).
- Use Case: Protect your entire application except for the
/loginpage and/api/auth/loginendpoint, redirecting any unauthenticated user attempting to access other routes to the login page.
Quick Start
Add the '/new-public-route/' path to the publicPaths array in src/proxy.ts to make it accessible without authentication.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: auth_routing Download link: https://github.com/arunoda/OkBrain/archive/main.zip#auth-routing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.