feat: add verify otp endpoint
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { LoginDTO } from '../dtos/login.dto';
|
||||
import { LoginProvider } from './login.provider';
|
||||
import { VerifyOtpDTO } from '../dtos/verify-otp.dto';
|
||||
import { VerifyOTPProvider } from './verify-otp.provider';
|
||||
|
||||
@Injectable()
|
||||
export class AuthService {
|
||||
@@ -9,11 +11,18 @@ export class AuthService {
|
||||
* Inject Login Provider
|
||||
*/
|
||||
private readonly loginProvider: LoginProvider,
|
||||
|
||||
/**
|
||||
* Inject Verify OTP Provider
|
||||
*/
|
||||
private readonly verifyOTPProvider: VerifyOTPProvider,
|
||||
) {}
|
||||
|
||||
public async logIn(loginDto: LoginDTO) {
|
||||
return await this.loginProvider.logIn(loginDto);
|
||||
}
|
||||
|
||||
// public async verifyOTP(verifyOtpDto: VerifyOtpDTO) {}
|
||||
public async verifyOTP(verifyOtpDto: VerifyOtpDTO) {
|
||||
return await this.verifyOTPProvider.verifyOTP(verifyOtpDto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user