Summary
With this, we have reached the end of this chapter; let’s have a recap of the valuable things you have learned.
We now know how to implement user authentication in the Angular application, and we have used an HTTP interceptor to intercept HTTP requests to transform its headers and add the valid JWT for the API calls. We have also learned about the different route guards that allow us to protect routes from unauthorized access or prevent accidental loss of data when navigating out from the route. Lastly, we have learned how to use NgRx state management by improving how to implement authentication in Angular.
The next chapter will teach us how to write end-to-end testing in Angular using the Cypress framework.