This chapter will explain how to implement authentication to our frontend when we are using JWT authentication in the backend. At the beginning, we will switch on security in our backend to enable JWT authentication. Then, we will create a component for the login functionality. Finally, we will modify our CRUD functionalities to send the token in the request's Authorization header to the backend.
In this chapter, we will cover the following topics:
- Securing the backend
- Securing the frontend