import type { IAuthGuard , Type } from '@nestjs/passport' ; import { AuthGuard as NestAuthGuard } from '@nestjs/passport' ; export function AuthGuard ( options ? ) { const strategies = [ 'jwt' ] ; if ( options ?. public ) { strategies . push ( 'public' ) ; } return NestAuthGuard ( strategies ) ; }