NestJS · Middle · Question 59 of 75

What is middleware bound in configure(consumer) NOT able to see?

Explanation

That's why role checks belong in guards. Middleware suits generic things like logging, request IDs or body parsing.

Further reading

Problem with a question

NestJS · Middle · question 59

Test yourself

Take the NestJS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz