UNPKG

@mercury-labs/nest-auth

Version:

Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.

10 lines (9 loc) 423 B
/// <reference types="node" /> import { NestMiddleware } from '@nestjs/common'; import { IncomingMessage, ServerResponse } from 'http'; import { IAuthDefinitions } from '../../domain'; export declare class BasicAuthMiddleware implements NestMiddleware { private readonly _authDefinitions; constructor(_authDefinitions: IAuthDefinitions); use(__: IncomingMessage, res: ServerResponse, next: () => void): void; }