UNPKG

@takentrade/takentrade-libs

Version:
19 lines (18 loc) 782 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OTP_ATTEMPTS_CACHE_PREFIX = exports.OTP_CACHE_PREFIX = exports.DEFAULT_OTP_OPTIONS = exports.OTP_BLOCK_DURATION = exports.MAX_OTP_ATTEMPTS = exports.DEFAULT_OTP_EXPIRY = exports.DEFAULT_OTP_LENGTH = void 0; exports.DEFAULT_OTP_LENGTH = 6; exports.DEFAULT_OTP_EXPIRY = 10; // 10 minutes exports.MAX_OTP_ATTEMPTS = 3; exports.OTP_BLOCK_DURATION = 30; // 30 minutes exports.DEFAULT_OTP_OPTIONS = { length: exports.DEFAULT_OTP_LENGTH, expiry: exports.DEFAULT_OTP_EXPIRY, caseSensitive: false, digits: true, lowerCaseAlphabets: false, upperCaseAlphabets: false, specialChars: false, }; exports.OTP_CACHE_PREFIX = 'otp:'; exports.OTP_ATTEMPTS_CACHE_PREFIX = 'otp:attempts:';