UNPKG

@mercury-labs/nest-auth

Version:

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

14 lines (13 loc) 660 B
import { CommandBus } from '@nestjs/cqrs'; import { Strategy } from 'passport-local'; import type { IAuthUserEntityForResponse } from '../definitions'; import { IAuthDefinitions } from '../index'; export declare const LOCAL_STRATEGY_NAME: string; declare const LocalStrategy_base: new (...args: any[]) => Strategy; export declare class LocalStrategy extends LocalStrategy_base { protected readonly authDefinitions: IAuthDefinitions; protected readonly bus: CommandBus; constructor(authDefinitions: IAuthDefinitions, bus: CommandBus); validate(request: any, username: string, password: string): Promise<IAuthUserEntityForResponse>; } export {};