Question · NestJS course · Module 2: Routing and Request Lifecycle
Basics: Guard Return Value
What does the canActivate() method of a guard return to allow access to an endpoint?
Answer options
- Boolean true
- String 'allowed'
- An object with roles
- null
Show the answer
Correct answer:
- Boolean true