Skip to Main Content
Full Stack Development with Angular and GraphQL
book

Full Stack Development with Angular and GraphQL

by Ahmed Bouchefra
March 2022
Intermediate to advanced content levelIntermediate to advanced
390 pages
6h 43m
English
Packt Publishing
Content preview from Full Stack Development with Angular and GraphQL

Chapter 8: Guarding Routes and Testing Authentication

In the previous chapter, we saw how to use Apollo Client to send queries and mutations to our previously implemented backend API. We integrated Apollo with our Angular frontend, then implemented the required services and components for user authentication.

We also added functionality to our application header to allow users to navigate between pages such as the profile, home feed, and login pages. We added the necessary functionality to allow users to search for other users on the network using a search bar in the header.

In this chapter, we will continue implementing our auth system by guarding the necessary route(s) against unauthorized access, sending the JWT with the API requests, and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Accelerating Angular Development with Ivy

Accelerating Angular Development with Ivy

Lars Gyrup Brink Nielsen, Mateus Carniatto, Jacob Andresen
Building Large-Scale Web Applications with Angular

Building Large-Scale Web Applications with Angular

Chandermani Arora, Kevin Hennessy, Christoffer Noring, Doguhan Uluca

Publisher Resources

ISBN: 9781800202467Supplemental Content