@brewww/authentication-service
Version:
Authenticator service for Brew projects.
11 lines • 347 B
JavaScript
;
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