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

19 lines (18 loc) 581 B
import { TwoFactorCodeDto } from './generated/rest-dto/two-factor-code.dto'; import { TwoFactorUserDto } from './generated/rest-dto/two-factor-user.dto'; export declare enum TwoFactorEventEnum { GenerateCode = "GenerateCode" } export interface TwoFactorEventContext { [TwoFactorEventEnum.GenerateCode]: { twoFactorUser: TwoFactorUserDto; twoFactorCode: TwoFactorCodeDto; code: string; repetition: boolean; }; serviceId: string; type: string; operationName: string; externalUserId: string; externalTenantId: string; }