UNPKG

@hz-9/a5-authn

Version:

Authentication module for the @hz-9/a5-* series of repositories.

15 lines (14 loc) 790 B
import { Strategy } from 'passport-local'; import { A5AuthnUserPayloadBo } from '../../interfaces/auth'; import { A5AuthnPwdService } from './a5-authn-pwd.service'; import { A5AuthnPwdStrategyConstructorOptions } from './interfaces'; declare const A5AuthnPwdStrategy_base: new (...args: [] | [options: import("passport-local").IStrategyOptionsWithRequest] | [options: import("passport-local").IStrategyOptions]) => Strategy & { validate(...args: any[]): unknown; }; export declare class A5AuthnPwdStrategy extends A5AuthnPwdStrategy_base { private readonly service; private readonly options; constructor(options: A5AuthnPwdStrategyConstructorOptions, service: A5AuthnPwdService); validate(username: string, password: string): Promise<A5AuthnUserPayloadBo>; } export {};