Put in order · NestJS course · Module 4: Authentication
@Req() decorator syntax
Arrange the syntax for retrieving the user from the request in a protected endpoint
Items to put in order
- return user; }
- getProfile(@Req() req) {
- req.user;
- const user =
You can check the correct answer by solving this task in the CodeWorlds game.