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
/
src
/
guards
/
jwt-auth.guard.ts
6 lines
(4 loc)
•
160 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
Injectable
}
from
'@nestjs/common'
;
import
{
AuthGuard
}
from
'@nestjs/passport'
;
@Injectable
()
export
class
JwtAuthGuard
extends
AuthGuard
(
'jwt'
) {}