UNPKG
@10abdullahbutt/auth-module
Version:
latest (1.0.0)
1.0.0
A NestJS-style authentication module with JWT and role-based access control.
@10abdullahbutt/auth-module
/
dist
/
guards
/
roles.guard.d.ts
8 lines
(7 loc)
•
280 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
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
; }