UNPKG

@nestjs-mod/two-factor

Version:

Two factor module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction

13 lines (12 loc) 538 B
import { ReplaySubject } from 'rxjs'; import { TwoFactorEventContext } from './two-factor-types'; type TwoFactorSsoEventCallback = (event: Partial<TwoFactorEventContext>) => Promise<void>; export declare class TwoFactorEventsService { private logger; private twoFactorEventStream$; private twoFactorEventCallbacks; private id; send(event: Partial<TwoFactorEventContext>): Promise<void>; listen(twoFactorEventCallback?: TwoFactorSsoEventCallback): ReplaySubject<Partial<TwoFactorEventContext>> | null; } export {};