csrf-validator
Version:
CSRF Validator for Node.js
17 lines (16 loc) • 760 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.CSRFValidatorOptions = void 0;
var CSRFValidatorOptions = /** @class */ (function () {
function CSRFValidatorOptions(tokenSecretKey, ignoredMethods, ignoredRoutes, entryPointRoutes, cookieKey, cookieSecretKey, cookieSessionKeys, customErrorMessage) {
this.tokenSecretKey = tokenSecretKey;
this.ignoredMethods = ignoredMethods;
this.ignoredRoutes = ignoredRoutes;
this.entryPointRoutes = entryPointRoutes;
this.cookieKey = cookieKey;
this.cookieSecretKey = cookieSecretKey;
this.cookieSessionKeys = cookieSessionKeys;
}
return CSRFValidatorOptions;
}());
exports.CSRFValidatorOptions = CSRFValidatorOptions;
;