🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@concepta/nestjs-otp

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@concepta/nestjs-otp

Rockets NestJS User

7.0.0-alpha.4
latest
npm
Version published
Weekly downloads
109
29.76%
Maintainers
2
Weekly downloads
 
Created
Source

Rockets NestJS Otp

A module for managing a basic Otp entity, including controller with full CRUD, DTOs, sample data factory and seeder.

Project

NPM Latest NPM Downloads GH Last Commit GH Contrib NestJS Dep

Installation

yarn add @concepta/nestjs-otp

Usage

import { Module } from '@nestjs/common';
import { TypeOrmExtModule } from '@concepta/nestjs-typeorm-ext';
import { OtpModule } from '@concepta/nestjs-user';
import { CrudModule } from '@concepta/nestjs-crud';

@Module({
  imports: [
    TypeOrmExtModule.forRoot({
      type: 'postgres',
      url: 'postgres://user:pass@localhost:5432/postgres',
    }),
    CrudModule.forRoot({}),
    OtpModule.forRootAsync({
      imports: [
        TypeOrmExtModule.forFeature({
          otp: {
            entity: YourOtpEntity,
          },
        }),
      ],
      useFactory: () => ({}),
      entities: ['otp'],
    }),
  ],
})
export class AppModule {}

Configuration

  • Seeding

Seeding

Configurations specific to (optional) database seeding.

ENV

Configurations available via environment.

VariableTypeDefault
ORG_MODULE_SEEDER_AMOUNT<number>50number of additional users to create

FAQs

Package last updated on 27 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts