| 12345678910111213141516171819 | 
							- require('dotenv').config()
 
- // const {HOTP} = require('otpauth')
 
- // const coba = require('../utils/coba')
 
- //  module.exports = new HOTP({
 
- //   algorithm: 'SHA256',
 
- //   digits: 6,
 
- //   period: 30,
 
- //   secret: 'tes'
 
- // })
 
- module.exports = (limit = 4) => {
 
-   const digits = '0123456789'
 
-   let OTP = ''
 
-   for (let i = 0; i < limit; i++) {
 
-     OTP += digits[Math.floor(Math.random() * 10)]
 
-   }
 
-   return OTP
 
- }
 
 
  |