nss-json-server
Version:
JSON Server with other useful mixins
10 lines (9 loc) • 461 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const yargs = require("yargs");
const expires = yargs.argv.X;
exports.JWT_SECRET_KEY = 'json-server-auth-123456';
exports.JWT_EXPIRES_IN = expires || '1h';
exports.SALT_LENGTH = 10;
exports.EMAIL_REGEX = new RegExp("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$");
exports.MIN_PASSWORD_LENGTH = 4;