UNPKG

nestjs-auth-kit

Version:

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

36 lines (35 loc) 1.06 kB
import { AuthService } from './auth.service'; import { RegisterDto } from './dto/register.dto'; export declare class AuthController { private readonly authService; constructor(authService: AuthService); register(registerDto: RegisterDto): Promise<{ message: string; user: { id?: string; firstName?: string; lastName?: string; email?: string; roles?: string[]; otps?: import("./entities/otp.entity").OtpEntity[]; }; }>; login(loginDto: any): Promise<{ access_token: string; }>; googleLogin(req: any): Promise<{ email: any; userId: any; }>; facebookLogin(req: any): Promise<{ email: any; userId: any; }>; sendOtp(email: string): Promise<string>; verifyOtp(email: string, otp: string): Promise<boolean>; resetPassword(email: string, otp: string, newPassword: string): Promise<void>; getProfile(req: any): Promise<any>; getAdminData(): { message: string; }; }