瀏覽代碼

introduce the jwt-guard

Sven Czarnian 2 年之前
父節點
當前提交
1d7f9e7e5a
共有 1 個文件被更改,包括 5 次插入0 次删除
  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') {}