Ensure carriage return in private key is not escaped
MODIFY
src/utils/Configuration.ts
src/utils/Configuration.ts
@@ -25,6 +25,7 @@ import OICPServiceConfiguration from '../types/configuration/OICPServiceConfigur
import SchedulerConfiguration from '../types/configuration/SchedulerConfiguration';
import StorageConfiguration from '../types/configuration/StorageConfiguration';
import TraceConfiguration from '../types/configuration/TraceConfiguration';
+import Utils from './Utils';
import WSDLEndpointConfiguration from '../types/configuration/WSDLEndpointConfiguration';
import chalk from 'chalk';
import fs from 'fs';
@@ -65,6 +66,11 @@ export default class Configuration {
if (firebaseConfiguration.privateKey) {
firebaseConfiguration.privateKey = firebaseConfiguration.privateKey.replace(/\\n/g, '\n');
}
+ if (!Utils.isEmptyArray(firebaseConfiguration.tenants)) {
+ for (const tenantConfig of firebaseConfiguration.tenants) {
+ tenantConfig.configuration.privateKey = tenantConfig.configuration.privateKey.replace(/\\n/g, '\n');
+ }
+ }
return firebaseConfiguration;
}
}

Ensure carriage return in private key is not escaped