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:
Mathis H (Avnyr) 2024-05-15 14:23:40 +02:00
parent 2eda06f087
commit 9302df4b0f
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -0,0 +1,10 @@
import randomatic from "randomatic";
const IntCodeService = {
generate: () => {
return randomatic('0', 6)
}
}
export default IntCodeService;