Skip to content
Onsite

Create a custom parameter decorator such as @CurrentUser.

MediumP3Coding

In NestJS, create a custom parameter decorator such as @CurrentUser() that gives a controller method the authenticated user. Show how to read one field, and how to combine it with guards in a single decorator.

Saved automatically

Write or say your answer first, then compare it with the model answer.

Saved automatically