{"id":18916,"library":"vue-jwt-auth","title":"vue-jwt-auth","description":"This package is deprecated and has been moved to @websanova/vue-auth. The last version is 0.12.4-moved. It was a Vue.js JWT authentication plugin providing login, logout, token storage, and HTTP interceptors. It is replaced by the more feature-rich @websanova/vue-auth package which supports multiple authentication types (JWT, OAuth, etc.) and drivers (axios, fetch, etc.). Do not use this package; migrate to @websanova/vue-auth.","status":"renamed","version":"0.12.4-moved","language":"javascript","source_language":"en","source_url":"https://github.com/websanova/vue-jwt-auth","tags":["javascript","vue","vue.js","jwt","auth","authentication","plugin","json","web"],"install":[{"cmd":"npm install vue-jwt-auth","lang":"bash","label":"npm"},{"cmd":"yarn add vue-jwt-auth","lang":"bash","label":"yarn"},{"cmd":"pnpm add vue-jwt-auth","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Default export; named import does not work.","wrong":"import { VueJwtAuth } from 'vue-jwt-auth'","symbol":"VueJwtAuth","correct":"import VueJwtAuth from 'vue-jwt-auth'"},{"note":"Must be used as a plugin via Vue.use().","wrong":"new VueJwtAuth(options)","symbol":"Vue.use(VueJwtAuth, options)","correct":"Vue.use(VueJwtAuth, options)"},{"note":"$auth is injected globally; login returns a promise.","wrong":"this.$auth.login(credentials).catch(...)","symbol":"this.$auth","correct":"this.$auth.login(credentials)"}],"quickstart":{"code":"import Vue from 'vue';\nimport VueJwtAuth from 'vue-jwt-auth';\n\nVue.use(VueJwtAuth, {\n  register: '/api/register',\n  login: '/api/login',\n  logout: '/api/logout',\n  auth: '/api/user',\n  token: '/api/token',\n  refresh: '/api/refresh',\n  token_type: 'Bearer',\n  token_name: 'access_token',\n  refresh_token_name: 'refresh_token',\n  auth_redirect: '/login',\n  login_redirect: '/dashboard',\n  register_redirect: '/dashboard',\n  logout_redirect: '/login',\n  forbidden_redirect: '/401',\n  not_found_redirect: '/404',\n  forbidden_page: '/401',\n  not_found_page: '/404'\n});\n\nnew Vue({\n  router,\n  store,\n  render: h => h(App)\n}).$mount('#app');","lang":"javascript","description":"Sets up vue-jwt-auth with default routes and redirects. This package is deprecated; prefer @websanova/vue-auth instead."},"warnings":[{"fix":"Migrate to @websanova/vue-auth.","message":"vue-jwt-auth is deprecated and renamed to @websanova/vue-auth","severity":"deprecated","affected_versions":">=0.12.4-moved"},{"fix":"Read the documentation of @websanova/vue-auth for new API.","message":"The package has been completely rewritten. API interface is different from vue-jwt-auth.","severity":"breaking","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use npm install @websanova/vue-auth instead.","cause":"Package renamed or not installed.","error":"Cannot find module 'vue-jwt-auth'"},{"fix":"Use Vue.use(VueJwtAuth, options).","cause":"Using new VueJwtAuth() instead of Vue.use().","error":"TypeError: VueJwtAuth is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}