@alaan/s2s-auth
Version:
Reusable JWT auth module for NestJS service-to-service authentication
8 lines (7 loc) • 306 B
TypeScript
import { CanActivate, ExecutionContext } from '@nestjs/common';
import { TokenService } from './token.service';
export declare class JwtAuthGuard implements CanActivate {
private readonly tokenService;
constructor(tokenService: TokenService);
canActivate(context: ExecutionContext): boolean;
}