{"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,"search_vec":"'0.12.4':19 'auth':4,72 'authent':26,50,73 'axio':57 'deprec':8 'driver':56 'etc':54,59 'featur':43 'feature-rich':42 'fetch':58 'http':34 'interceptor':35 'javascript':68 'json':75 'jwt':3,25,52,71 'last':16 'login':29 'logout':30 'migrat':65 'move':12,20 'multipl':49 'oauth':53 'packag':6,46,64 'plugin':27,74 'provid':28 'replac':38 'rich':44 'storag':32 'support':48 'token':31 'type':51 'use':62 'version':17 'vue':2,69 'vue-jwt-auth':1 'vue.js':24,70 'web':76 'websanova/vue-auth':14,45,67","created_at":"2026-04-25T07:40:48.700483+00:00","updated_at":"2026-04-25T07:40:48.700483+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://websanova.com/vue-auth","github":"https://github.com/websanova/vue-jwt-auth","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-jwt-auth","openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth-security","web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}