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
Technical requirements
You will need Visual Studio Code to complete this chapter.
The following is a link to the GitHub repository for this chapter: https://github.com/PacktPublishing/ASP.NET-Core-and-Vue.js/tree/master/Chapter16/ ...
Get ASP.NET Core and Vue.js now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.