Question · NestJS course · Module 4: Authentication
AuthGuard in NestJS
What does AuthGuard('local') do in the @UseGuards decorator?
Answer options
- Activates the 'local' login strategy from Passport.js
- Creates a local copy of the database
- Blocks access to the endpoint for local users
- Runs DTO validation
You can check the correct answer by solving this task in the CodeWorlds game.