NestJS · Senior · Question 25 of 75

What's a risk of putting authorization logic only in guards?

Explanation

Combine route-level guards (who may call this?) with checks in the domain layer (may this user touch this object?).

Further reading

Problem with a question

NestJS · Senior · question 25

Test yourself

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

Take this quiz