Download src/interfaces/service/IOtpService.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/interfaces/service/IOtpService.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/interfaces/service/IOtpService.ts
-
curl -L -o IOtpService.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/interfaces/service/IOtpService.ts
435 Bytes
| 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>; | |
| } | |