├── .env ├── .eslintrc.cjs ├── .gitignore ├── .vscode └── extensions.json ├── README.md ├── index.html ├── package.json ├── public └── favicon.ico ├── src ├── App.vue ├── assets │ └── base.css ├── helpers │ ├── fake-backend.js │ ├── fetch-wrapper.js │ ├── index.js │ └── router.js ├── main.js ├── stores │ ├── auth.store.js │ ├── index.js │ └── users.store.js └── views │ ├── HomeView.vue │ ├── LoginView.vue │ └── index.js └── vite.config.js /.env: -------------------------------------------------------------------------------- 1 | VITE_API_URL=http://localhost:4000 2 | -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/README.md -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/App.vue -------------------------------------------------------------------------------- /src/assets/base.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/assets/base.css -------------------------------------------------------------------------------- /src/helpers/fake-backend.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/helpers/fake-backend.js -------------------------------------------------------------------------------- /src/helpers/fetch-wrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/helpers/fetch-wrapper.js -------------------------------------------------------------------------------- /src/helpers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/helpers/index.js -------------------------------------------------------------------------------- /src/helpers/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/helpers/router.js -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/main.js -------------------------------------------------------------------------------- /src/stores/auth.store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/stores/auth.store.js -------------------------------------------------------------------------------- /src/stores/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/stores/index.js -------------------------------------------------------------------------------- /src/stores/users.store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/stores/users.store.js -------------------------------------------------------------------------------- /src/views/HomeView.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/views/HomeView.vue -------------------------------------------------------------------------------- /src/views/LoginView.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/views/LoginView.vue -------------------------------------------------------------------------------- /src/views/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/src/views/index.js -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-3-pinia-jwt-authentication-example/HEAD/vite.config.js --------------------------------------------------------------------------------