UNPKG

otp-without-db

Version:

Database less OTP verification with cryptography

19 lines (17 loc) 411 B
declare module "OTPModule" { function createNewOTP( phone: string, otp: string, key?: string, expiresAfter?: number, algorithm?: string ): string; function verifyOTP( phone: string, otp: string, hash: string, key?: string, algorithm?: string ): boolean; export { createNewOTP, verifyOTP }; }