UNPKG

@brewww/authentication-service

Version:
11 lines 347 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OtpValue = void 0; const crypto_1 = require("crypto"); class OtpValue { static generate(length) { return Array.from({ length }, () => (0, crypto_1.randomInt)(0, 10)).join(""); } } exports.OtpValue = OtpValue; //# sourceMappingURL=otp-value.js.map