Spaces:
Sleeping

File size: 435 Bytes
4e83772
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import { IOtp, OtpPurposes } from "@/models/Otp.js";

export interface IOtpService {
	createNew(userId: string, purpose: OtpPurposes): Promise<{ OtpObject: IOtp; otp: number }>;
	verifyOtp(userId: string, otpEntered: number, purpose: OtpPurposes): Promise<boolean>;
	getResendOtp(userId: string, purpose: OtpPurposes): Promise<{ OtpObject: IOtp; otp: number }>;
	sendOtp(email: string, name: string, otp: number): Promise<Response>;
}