nest-azure-ad-jwt-validator
Version:
Nest Azure Active Directory JWT Token Validator
22 lines • 935 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NestAzureAdJwtValidatorModuleOptions = void 0;
class NestAzureAdJwtValidatorModuleOptions {
constructor(partial) {
var _a, _b;
Object.assign(this, partial);
if (!((_a = this.apps) === null || _a === void 0 ? void 0 : _a.length)) {
this.apps = [];
}
this.apps = this.apps.filter((x) => !!x);
if (!((_b = this.serviceTokens) === null || _b === void 0 ? void 0 : _b.length)) {
this.serviceTokens = [];
}
this.serviceTokens.push(process.env.SERVICE_TOKEN);
this.serviceTokens = this.serviceTokens.filter((x) => !!x);
this.enableDebugLogs = !!this.enableDebugLogs;
this.tokenHeader = partial.tokenHeader;
}
}
exports.NestAzureAdJwtValidatorModuleOptions = NestAzureAdJwtValidatorModuleOptions;
//# sourceMappingURL=module-config.js.map