-
-
Notifications
You must be signed in to change notification settings - Fork 327
Open
Labels
Description
Description
A unified permission management module for Vue 3 and Nuxt 3/4. It provides:
- v-permission directive — show/hide DOM elements based on user permissions
- usePermission() composable — reactive permission checking with async support
- Route guards — protect routes with permission-based and auth-based guards
- 6 matching modes — and, or, not, startWith, endWith, regex
- Built-in caching & persistence — localStorage/sessionStorage support
- Auto-imported composable in Nuxt via the module
- Zero dependencies for Vue 3, works as both a Vue plugin and a Nuxt module
Docs: https://vue-nuxt-permission.surge.sh
Repository
https://github.com/keroloszakaria/vue-nuxt-permission
npm
https://www.npmjs.com/package/vue-nuxt-permission
Nuxt Compatibility
Nuxt 4, Nuxt 3
Reactions are currently unavailable