MaternAlert / src /auth /guards /jwt-auth.guard.ts
Auspicious14's picture
Initial backend deployment with Docker and Cron jobs
f78b36a
Raw
History Blame Contribute Delete
295 Bytes
import { Injectable } from "@nestjs/common";
import { AuthGuard } from "@nestjs/passport";
/**
* JWT Auth Guard
*
* Use this guard to protect routes that require authentication
*
* Usage:
* @UseGuards(JwtAuthGuard)
*/
@Injectable()
export class JwtAuthGuard extends AuthGuard("jwt") {}