Chapter 16: Adding Authentication in Vue.js
In this chapter, you will learn how to use the Vue.js app's authentication process by building a registration form and login form. You will be creating a service for auth and router auth guards to protect any routers or pages in your Vue.js app. We will also be using a JSON Web Token (JWT) when requesting a protected resource. This chapter is an exciting chapter, so get let's started!
We will be covering the following topics:
- Setting up Vuex for authentication
- Writing an auth guard
- HTTP interceptors
- Auto login