@hz-9/a5-authn
Version:
Authentication module for the @hz-9/a5-* series of repositories.
15 lines (14 loc) • 799 B
TypeScript
import { Strategy } from 'passport-local';
import { A5AuthnUserPayloadBo } from '../../interfaces/auth';
import { A5AuthnEmailService } from './a5-authn-email.service';
import { A5AuthnEmailStrategyConstructorOptions } from './interfaces';
declare const A5AuthnEmailStrategy_base: new (...args: [] | [options: import("passport-local").IStrategyOptionsWithRequest] | [options: import("passport-local").IStrategyOptions]) => Strategy & {
validate(...args: any[]): unknown;
};
export declare class A5AuthnEmailStrategy extends A5AuthnEmailStrategy_base {
private readonly service;
private readonly options;
constructor(options: A5AuthnEmailStrategyConstructorOptions, service: A5AuthnEmailService);
validate(email: string, code: string): Promise<A5AuthnUserPayloadBo>;
}
export {};