feat: Add IntCode service in authentication
Implemented a new IntCode service within the authentication services. The service is responsible for generating a 6-digit random integer code using the randomatic module. This service will be used for OTP functionalities.
This commit is contained in:
10
src/services/authentication/intcode.service.ts
Normal file
10
src/services/authentication/intcode.service.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import randomatic from "randomatic";
|
||||||
|
|
||||||
|
|
||||||
|
const IntCodeService = {
|
||||||
|
generate: () => {
|
||||||
|
return randomatic('0', 6)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default IntCodeService;
|
||||||
Reference in New Issue
Block a user