- Notifications
You must be signed in to change notification settings - Fork118
bezkoder/vue-vuex-jwt-auth
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
For instruction, please visit:
More Practice:
Fullstack with Spring Boot Back-end:
Spring Boot + Vue.js: Authentication with JWT & Spring Security Example
Fullstack with Node.js Express Back-end:
Node.js Express + Vue.js: JWT Authentication & Authorization example
Fullstack CRUD:
Integration (run back-end & front-end on same server/port)
Opensrc/services/auth-header.js and modifyreturn statement for appropriate back-end.
exportdefaultfunctionauthHeader(){letuser=JSON.parse(localStorage.getItem('user'));if(user&&user.accessToken){return{Authorization:'Bearer '+user.accessToken};// for Spring Boot back-end// return { 'x-access-token': user.accessToken }; // for Node.js Express back-end}else{return{};}}
npm installnpm run servenpm run buildnpm run testnpm run lintAbout
Vue.js Demo for JWT Authentication with Vuex and Vue Router
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.