hqit-plugin is a Vue.js authentication and dynamic routing plugin (v1.2.13). It provides configurable async route generation based on user permissions fetched from an API, session storage for auth tokens, and responsive base font-size settings. Part of the hqit ecosystem, it integrates with vue-router for login redirection and route guards. Release cadence is low, with niche adoption. Key differentiator: built-in adaptive layout support alongside auth.
npm install hqit-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full Vue plugin setup with dynamic routing, auth API, and adaptive base-size config.
Always provide router, asyncRouterMap in the plugin options object.
Set authoritiesPath to the exact property path returned by getUser, e.g., 'user.roles'.
Ensure authKey (default 'hqit_auth') is set in sessionStorage before plugin hooks run, e.g., on login.
Set baseSize to 37.5 (default) or adapt to upcoming CSS-based approach.
Ensure router is created and passed in plugin options: Vue.use(hqitPlugin, { router, ... })Inspect API response and set authoritiesPath to the correct nested path, e.g., 'data.roles'.
Verify getUser returns the correct permissions and asyncRouterMap roles are properly assigned.
No dependency data recorded yet.