Skip to main content

@nestjs-mod/two-factor

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

NPM version monthly downloads Telegram Discord

Installation

npm i --save @nestjs-mod/two-factor

Modules

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

Modules descriptions

TwoFactorModule

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

Shared providers

TwoFactorService, TwoFactorEventsService

Shared imports

PrismaModule, PrismaToolsModule

Configuration

KeyDescriptionConstraintsDefaultValue
getTimeoutValueFunction for determining the lifetime of code (default: 15min)optionaldefault-

Static environments

KeyDescriptionSourcesConstraintsDefaultValue
useFiltersUse filtersobj['useFilters'], process.env['TWO_FACTOR_USE_FILTERS']optionaltruetrue

Static configuration

KeyDescriptionConstraintsDefaultValue

Back to Top

License

MIT