UNPKG

@enteocode/nestjs-mfa

Version:

Implementation agnostic RFC-compliant Multi-Factor Authentication (2FA/MFA) module for NestJS with recovery code support

13 lines (12 loc) 336 B
import type { Identifier } from '../types'; import type { SecretKey } from '@otplib/core'; /** * Should be triggered when MFA was enabled for a user * * @event */ export declare class AuthenticationEnabledEvent { readonly user: Identifier; readonly secret: SecretKey; constructor(user: Identifier, secret: SecretKey); }