fec-route-protectionUse when implementing or reviewing frontend route protection, auth guards, RBAC, permission routes, login state handling, redirects, middleware, React Router, Next.js, Vue Router, or Nuxt route middleware; Chinese triggers include route protection, permission routing, login state.
Install via ClawdBot CLI:
clawdbot install bovinphang/fec-route-protectionGrade Fair — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Calls external URL not in known-safe list
https://github.com/bovinphang/frontend-craftAudited Nov 18, 2026 · audit v1.0
Generated Nov 18, 2026
A B2B SaaS product needs to ensure only authenticated users from the correct tenant can reach dashboard routes, with role-based sections hidden and blocked. The guard resolves session state, checks tenant context and permissions, and redirects unauthorized users to 403 without content flicker.
An online retailer's admin console separates order management, inventory, and finance routes by staff role and permissions. Route guards block direct URL access, preserve the intended destination for post-login redirect, and handle expired sessions gracefully across role changes.
A banking or fintech web app requires login for account pages and enforces strict session expiration and 401 cleanup with redirect back to login. The protection layer prevents stale sessions from rendering sensitive balances and avoids refresh storms on concurrent 401 responses.
A patient and clinician portal uses RBAC to limit access to medical records, appointments, and billing routes based on permission matrices from the backend session. Guards verify permissions from trusted server responses and re-authorize on the server to meet compliance requirements.
An online learning platform protects course content routes so only enrolled students with the right plan can access lessons. Route guards check auth status, enrollment permissions, and redirect unauthenticated users to login while showing stable skeleton screens during loading.
Sell tiered subscriptions to organizations that need role-based access across teams and tenants. Route protection is a core feature ensuring plan-based route gating and tenant isolation.
License a reusable frontend authentication and RBAC guard kit to agencies and enterprises building internal portals. Includes ready-made React Router, Next.js, Vue, and Nuxt guard implementations.
Offer enhanced route protection, audit logging, and session hardening as a paid security module for existing SaaS customers. Appeals to regulated industries needing verifiable authorization boundaries.
💬 Integration Tip
Start with a single auth status state machine and a shared canAccess helper, then implement one framework guard and reuse it across routes. Always pair client guards with server-side authorization checks so protection improves UX without being treated as a security boundary.
Scored Nov 18, 2026
Use when building UI with shadcn/ui components, Tailwind CSS layouts, form patterns with react-hook-form and zod, theming, dark mode, sidebar layouts, mobile navigation, or any shadcn component question.
Tailwind reference tool. Use when working with tailwind in frontend contexts.
A product creation skill based on the "Bee Website Builder" Open API. It is used to create a new product under a specified site language and product group, w...
A product update skill based on the "Bee Website Builder" Open API. It is used to update an existing product under a specified site language and supports upd...
Build WCAG 2.1 AA compliant websites with semantic HTML, proper ARIA, focus management, and screen reader support. Includes color contrast (4.5:1 text), keyboard navigation, form labels, and live regions. Use when implementing accessible interfaces, fixing screen reader issues, keyboard navigation, or troubleshooting "focus outline missing", "aria-label required", "insufficient contrast".
Use when building Vue 3 applications with Composition API, Nuxt 3, or Quasar. Invoke for Pinia, TypeScript, PWA, Capacitor mobile apps, Vite configuration.