@nxtoai/jwtette
Version:
JWT authentication package for NxtoAI microservices
15 lines (14 loc) • 660 B
TypeScript
import { NestMiddleware } from '@nestjs/common';
import { Request, Response, NextFunction } from 'express';
import { ConfigService } from '@nestjs/config';
import { JwtHelper } from './jwt.helper';
import { AagService } from '@nxtoai/aag';
import { JwtService } from './jwt.service';
export declare class AuthMiddleware implements NestMiddleware {
private readonly configService;
private readonly jwtService;
private readonly jwtHelper;
private readonly aag;
constructor(configService: ConfigService, jwtService: JwtService, jwtHelper: JwtHelper, aag: AagService);
use(req: Request, res: Response, next: NextFunction): Promise<void>;
}