Coding task · NestJS course · Module 4: Authentication
Protecting an endpoint with JWT
Create a protected GET /profile endpoint using JwtAuthGuard
Task
Complete the controller with a @Get('profile') endpoint protected by @UseGuards(JwtAuthGuard) that returns the logged-in user's data from @Req() req