NestJS - Authentication
You want to secure a NestJS API route so only logged-in users can access it. Which combination correctly applies authentication and explains why it secures the API?
Options:
A) Use @UseGuards(AuthGuard('jwt')) to check user identity before route access, preventing strangers.
B) Use @UseInterceptors(AuthInterceptor) to log requests, which blocks unauthorized users.
C) Use @UseFilters(AuthFilter) to catch errors, which stops unauthorized access.
D) Use @UsePipes(AuthPipe) to validate data, which ensures only valid users access the route.
