4e3908e 6a7bf05 4e3908e 6a7bf05
1
2
3
4
5
6
7
import { IJwtLoginPayload } from "@common/interfaces/jwt-payload.interface"; import { genGuard } from "@lib/guards/gen-guard"; export const UsersGuardMiddleware = genGuard( async (args, payload: IJwtLoginPayload) => payload.type === "user" );