Prechádzať zdrojové kódy

introduce the jwt-guard

Sven Czarnian 2 rokov pred
rodič
commit
1d7f9e7e5a
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      src/auth/guards/jwt.guard.ts

+ 5 - 0
src/auth/guards/jwt.guard.ts

@@ -0,0 +1,5 @@
+import { Injectable } from '@nestjs/common';
+import { AuthGuard } from '@nestjs/passport';
+
+@Injectable()
+export class JwtGuard extends AuthGuard('jwt') {}