NestJS · Junior · Question 53 of 75

How can you mark some routes as public when an auth guard is global?

Explanation

Metadata plus Reflector is the standard way for guards and interceptors to read route-level settings.

Further reading

Problem with a question

NestJS · Junior · question 53

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