This is a npm package for creating random otp autometically
just put with how many numbers or digit your otp will generate like 3,4,6,8 default it will create 5 digit otp.
If you give 0,1,2 or 10 onwards in digit it will create 5 digit otp.
npm i smart-otp
Ahin Subhra Das
Require smart otp in the top of your file
const smartOtp=require('smart-otp');
const otp = smartOtp(6); [Example: I need 6 digit otp so I put 6 ]