NestJS - Guards
Examine this NestJS controller snippet:
@UseGuards(AuthGuard || RolesGuard)
@Get('settings')
settings() {
return 'Settings';
}What is wrong with this guard application?
Examine this NestJS controller snippet:
@UseGuards(AuthGuard || RolesGuard)
@Get('settings')
settings() {
return 'Settings';
}What is wrong with this guard application?
@UseGuards syntax|| is invalid syntax and will cause a compilation or runtime error.|| cannot be used inside @UseGuards. -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions