nestjs-auth-kit
Version:
A modular and flexible authentication kit for NestJS with JWT, social login, OTP, and password reset.
10 lines (9 loc) • 405 B
TypeScript
import { Repository } from 'typeorm';
import { User } from '../entities/user.entity';
import { OtpService } from './otp.service';
export declare class ForgotPasswordService {
private readonly userRepository;
private readonly otpService;
constructor(userRepository: Repository<User>, otpService: OtpService);
resetPassword(email: string, otp: string, newPassword: string): Promise<void>;
}