lib/shared/guards/auth.guard.ts
An authentication guard that extends AbstractAuthGuard, used for full authentication including user fetching.
constructor(logger: Logger, userService: UserService, cacheService: CacheService)
|
||||||||||||
Defined in lib/shared/guards/auth.guard.ts:27
|
||||||||||||
Parameters :
|
import { Inject, Injectable, Logger } from "@nestjs/common";
import { AbstractAuthGuard } from "./abstract-auth.guard";
import { LOGGER } from "../modules/log/log.constants";
import { UserService } from "../../common/user/user.types";
import { CacheService } from "../modules/cache/cache.types";
/**
* An authentication guard that extends AbstractAuthGuard, used for full authentication including user fetching.
*/
@Injectable()
export class AuthGuard extends AbstractAuthGuard {
constructor(
@Inject(LOGGER) protected readonly logger: Logger,
protected readonly userService: UserService,
protected readonly cacheService: CacheService,
) {
super();
}
}