UNPKG

@brewww/authentication-service

Version:
9 lines (8 loc) 384 B
import { CanActivate, ExecutionContext } from "@nestjs/common"; import { ConfigService } from "@nestjs/config"; import { Observable } from "rxjs"; export declare class ApiKeyGuard implements CanActivate { private readonly configService; constructor(configService: ConfigService); canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean>; }