UNPKG

@msg91comm/otp

Version:

Package for sending OTP with msg91.

19 lines (18 loc) 444 B
import { OTP, Type } from "./otp"; declare type Options = { authToken: string; templateId: string; }; declare type OTPOptions = { templateId?: string; type?: Type; authToken?: string; }; declare class msg91 { private options; constructor(); setup(options: Options): this; createOTP(mobileNumber: string, options?: OTPOptions): OTP; } declare const _default: msg91; export default _default;