NestJS · Middle · Question 29 of 75

How does Passport fit into Nest authentication?

Explanation

A strategy class extends PassportStrategy(Strategy) and implements validate(), whose return value becomes request.user.

Further reading

Problem with a question

NestJS · Middle · question 29

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