Coding task · NestJS course · Module 2: Routing and Request Lifecycle

Guard in the Request Lifecycle

Create a guard as the second stage of the pipeline.

Task

Write a LifecycleAuthGuard that checks the authorization header - return true if it exists, false if not