Coding task · NestJS course · Module 2: Routing and Request Lifecycle
Creating the @CurrentUser() Decorator
Create a custom parameter decorator that extracts user data from the request.
Task
Write a @CurrentUser() decorator using createParamDecorator that returns request.user or a specific field user[data]