introduce the jwt-guard
This commit is contained in:
5
src/auth/guards/jwt.guard.ts
Normal file
5
src/auth/guards/jwt.guard.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
import { AuthGuard } from '@nestjs/passport';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class JwtGuard extends AuthGuard('jwt') {}
|
||||||
Reference in New Issue
Block a user