Explorar o código

introduce the jwt-guard

Sven Czarnian %!s(int64=2) %!d(string=hai) anos
pai
achega
1d7f9e7e5a
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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') {}