vue-create-protected-routes
OfficialGuard Vue routes with smart redirects.
Authorbmslabs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Secures client-side navigation by enforcing authentication on protected routes and managing automatic redirects between login and the admin area.
Core Features & Use Cases
- Meta-driven route protection using requiresAuth and public flags.
- In-router auth store integration via beforeEach with checkAuthIfNeeded().
- Smart redirects to login or dashboard to prevent login loops.
- Lazy loading of protected views to optimize performance.
- Clear guidance for adding new protected routes in a modular Vue app.
Quick Start
Configure your router to protect sensitive routes and redirect unauthenticated users to the login page automatically.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: vue-create-protected-routes Download link: https://github.com/bmslabs/bmlabs-projects-templates/archive/main.zip#vue-create-protected-routes 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.