@rsksmart/express-did-auth
Version:
Authentication with Verifiable Credentials for Express.js
16 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.REFRESH_TOKEN_PATH = exports.LOGOUT_PATH = exports.AUTH_PATH = exports.REQUEST_AUTH_PATH = exports.SIGNUP_PATH = exports.REQUEST_SIGNUP_PATH = exports.ACCESS_TOKEN_EXPIRATION = exports.USER_SESSION_DURATION = exports.REQUEST_COUNTER_TIME_SLOT = exports.MAX_REQUESTS_PER_TIME_SLOT = exports.CHALLENGE_EXPIRATION_TIME = void 0;
exports.CHALLENGE_EXPIRATION_TIME = 5 * 60 * 1000; // 5 mins
exports.MAX_REQUESTS_PER_TIME_SLOT = 20;
exports.REQUEST_COUNTER_TIME_SLOT = 10 * 60 * 1000; // 10 mins
exports.USER_SESSION_DURATION = 7 * 24 * 60 * 60 * 1000; // one week
exports.ACCESS_TOKEN_EXPIRATION = 10 * 60 * 1000; // 10 mins
// default routes
exports.REQUEST_SIGNUP_PATH = '/request-signup/:did';
exports.SIGNUP_PATH = '/signup';
exports.REQUEST_AUTH_PATH = '/request-auth/:did';
exports.AUTH_PATH = '/auth';
exports.LOGOUT_PATH = '/logout';
exports.REFRESH_TOKEN_PATH = '/refresh-token';
//# sourceMappingURL=defaults.js.map