@pega/dx-component-builder-sdk 0.1.25 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/auth.js +2 -2
package/package.json
CHANGED
package/src/auth.js
CHANGED
|
@@ -285,10 +285,10 @@ class PegaAuth {
|
|
|
285
285
|
const nSlash = redirectUri.indexOf('/', nLocalhost + 10);
|
|
286
286
|
const nPort = parseInt(redirectUri.substring(nLocalhost + 10, nSlash));
|
|
287
287
|
if (-1 !== nLocalhost) {
|
|
288
|
-
const options = isHttp ? {
|
|
288
|
+
const options = key && cert && !isHttp ? {
|
|
289
289
|
key: fs.readFileSync(key),
|
|
290
290
|
cert: fs.readFileSync(cert)
|
|
291
|
-
};
|
|
291
|
+
} : {};
|
|
292
292
|
const server = (isHttp ? http : https).createServer(options, (req, res) => {
|
|
293
293
|
const { method, url } = req;
|
|
294
294
|
const { winTitle, winBodyHtml } = this.config;
|