UNPKG

@enteocode/nestjs-mfa

Version:

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

22 lines (21 loc) 565 B
import { StreamableFile } from '@nestjs/common'; import { Format } from './qr-code.format'; export declare class QrCodeService { /** * Generates a QR code for the given Key URI in the given image format * * @internal * @param uri * @param format */ generate(uri: string, format: Format): Promise<StreamableFile>; /** * Returns a type annotated readable stream, ready to be served with a * NestJS controller * * @private * @param stream * @param format */ private getStreamableFile; }