12-route-guards
CommunityMake navigation secure with session-aware guards.
Software Engineering#authorization#authentication#router#session-management#frontend-security#route-guards
Authorkennypallchizaca-coder
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Route navigation in SPAs often breaks when session state is not hydrated, leading to flicker or incorrect access decisions. This Skill provides session-aware guards to enforce authentication, guest access, and role-based routing, waiting for session bootstrap before redirecting.
Core Features & Use Cases
- Auth guards protect private routes until the session is hydrated.
- Guest guards prevent authenticated users from visiting login/register pages.
- Role-based guards secure privileged areas, with optional deactivation guards for unsaved changes.
- Redirect handling preserves the user's intended destination on login.
Quick Start
Configure your router to load a central auth store and apply require-auth, require-guest, and require-role guards using route metadata.
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: 12-route-guards Download link: https://github.com/kennypallchizaca-coder/agentic-full-stack-skills/archive/main.zip#12-route-guards 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.