UNPKG

@hz-9/a5-authn

Version:

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

15 lines (14 loc) 799 B
import { Strategy } from 'passport-local'; import { A5AuthnUserPayloadBo } from '../../interfaces/auth'; import { A5AuthnPhoneService } from './a5-authn-phone.service'; import { A5AuthnPhoneStrategyConstructorOptions } from './interfaces'; declare const A5AuthnPhoneStrategy_base: new (...args: [] | [options: import("passport-local").IStrategyOptionsWithRequest] | [options: import("passport-local").IStrategyOptions]) => Strategy & { validate(...args: any[]): unknown; }; export declare class A5AuthnPhoneStrategy extends A5AuthnPhoneStrategy_base { private readonly service; private readonly options; constructor(options: A5AuthnPhoneStrategyConstructorOptions, service: A5AuthnPhoneService); validate(phone: string, code: string): Promise<A5AuthnUserPayloadBo>; } export {};