From 1cdbfa65bc2c2e79f62337bae0f62c923b05e2d5 Mon Sep 17 00:00:00 2001 From: Mike Purvis Date: Fri, 8 May 2020 13:37:31 -0700 Subject: [PATCH] update comment about windows to include other platforms --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 79bad26a..08d89113 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,8 @@ exports.login = async function (options) { // find a callback URL on the local machine try { - if (isMac) { // capture callback is currently not working on windows. This is a workaround to not use it + // capture callback isn't working reliably outside of Mac. This is a workaround to not use it + if (isMac) { tempUrl = await capture.callback(5000); // if we found a suitable URL, attempt to use it newUrl.searchParams.set('success_url', `http://${tempUrl.hostname}:${tempUrl.port}`);