diff options
author | rohan09-raj <[email protected]> | 2022-08-19 00:10:29 +0530 |
---|---|---|
committer | rohan09-raj <[email protected]> | 2022-08-19 00:10:42 +0530 |
commit | 953dd3c954411d92811415cc9be4a7c7d76ab185 (patch) | |
tree | 0bd2aa118361bbe70f0ac0b62da3c12fa1cb902f /server/utils | |
parent | a9ed2c9daa5a3e065401996daf922f59de7f0101 (diff) |
added otp support
Diffstat (limited to 'server/utils')
-rw-r--r-- | server/utils/otp.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/utils/otp.js b/server/utils/otp.js new file mode 100644 index 0000000..9a2a0bc --- /dev/null +++ b/server/utils/otp.js @@ -0,0 +1,8 @@ +import {SIX_TIMES_NINE} from '../constants/aadhaar'; + +const generateOTP = () => { + const otp = Math.floor(Math.random() * SIX_TIMES_NINE + 1); + return otp; +}; + +export default generateOTP; |