NestJS · Junior · Question 55 of 75

Why should password hashes never be returned in API responses?

Explanation

Returning entities directly is risky. Map to response DTOs or use serialization rules.

Further reading

Problem with a question

NestJS · Junior · question 55

Test yourself

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

Take this quiz