UNPKG

@katalysttech/auth

Version:

A flexible authentication module for NestJS applications with JWT and refresh token support

11 lines (10 loc) 440 B
import { CanActivate, ExecutionContext } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { AuthService } from '../auth.service'; export declare class AuthGuard implements CanActivate { private readonly reflector; private readonly authService; constructor(reflector: Reflector, authService: AuthService); canActivate(context: ExecutionContext): Promise<boolean>; private extractTokenFromHeader; }