bb-inspired
Version:
Core library for BB-inspired NestJS backend
10 lines (9 loc) • 392 B
TypeScript
import { CanActivate, ExecutionContext } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { AuthService } from '../auth/auth.service';
export declare class RolesGuard implements CanActivate {
private reflector;
private authService;
constructor(reflector: Reflector, authService: AuthService);
canActivate(context: ExecutionContext): Promise<boolean>;
}