You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution: According to the docs guards are annotated with @Injectable and implement a canActivate method. So we can use that to hook into the framework.
Limitation: Although the nest docs say that guards should always have an @Injectable decorator, guards work just fine without it unless it has dependencies on other services.
The text was updated successfully, but these errors were encountered:
https://docs.nestjs.com/guards
Solution: According to the docs guards are annotated with
@Injectable
and implement acanActivate
method. So we can use that to hook into the framework.Limitation: Although the nest docs say that guards should always have an
@Injectable
decorator, guards work just fine without it unless it has dependencies on other services.The text was updated successfully, but these errors were encountered: