UNPKG

@10abdullahbutt/auth-module

Version:

A NestJS-style authentication module with JWT and role-based access control.

8 lines (7 loc) 280 B
import { CanActivate, ExecutionContext } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; export declare class RolesGuard implements CanActivate { private reflector; constructor(reflector: Reflector); canActivate(context: ExecutionContext): boolean; }