UNPKG

nestjs-auth-kit

Version:

A modular and flexible authentication kit for NestJS with JWT, social login, OTP, and password reset.

9 lines (8 loc) 327 B
import { Repository } from 'typeorm'; import { OtpEntity } from '../entities/otp.entity'; export declare class OtpService { private readonly otpRepository; constructor(otpRepository: Repository<OtpEntity>); generateOtp(email: string): Promise<string>; verifyOtp(email: string, otp: string): Promise<boolean>; }