MSG91 / sendotp-node

38 stars 24 forks source link

Can not set expiry time for otp #11

Closed go4taj closed 6 years ago

go4taj commented 7 years ago

setting expiry time for otp is not supported yet. can you please provide that.

caype commented 7 years ago

+1. Even though the documentation explains about the OTP expiry time feature, it throws an error when implemented.

rwalkover commented 6 years ago

Hello, @go4taj, @caype: OTP expiry added. You just need to call this way: sendOtp.setOtpExpiry('90'); //in minutes