Auth Guard

Let's implement the auth guard functionality in this lesson, along with its unit tests.

With our new service method, we can move on to the route guard itself. We’ll implement the guard before we approach the test. We’ll address the test later, because we’ll take a slightly different approach to how we test this service.

This is our updated code:

Get hands-on with 1400+ tech skills courses.