NestJS · Guards · Fresh / Intern · Concept
What does a Nest Guard do?
Short Interview Answer
Implements canActivate to allow/deny access before the route handler runs — typically authn/authz.
Detailed Explanation
Return boolean/Promise/Observable. Throw Unauthorized/Forbidden for clear HTTP semantics. Read metadata via Reflector.