@overscore/cli 0.13.18 → 0.13.20
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/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2911,12 +2911,16 @@ async function authLogin() {
|
|
|
2911
2911
|
catch {
|
|
2912
2912
|
// Browser open failed — user can follow the printed URL
|
|
2913
2913
|
}
|
|
2914
|
-
// Wait up to
|
|
2914
|
+
// Wait up to 5 minutes for the callback. A first-time login (OAuth, 2FA, or
|
|
2915
|
+
// just stepping away) can easily blow past a tight window, and a premature
|
|
2916
|
+
// timeout is worse than a long wait — it strands a login the user is mid-way
|
|
2917
|
+
// through and shows a scary error for something that was about to succeed.
|
|
2915
2918
|
const timeout = setTimeout(() => {
|
|
2916
|
-
console.error("\n
|
|
2919
|
+
console.error("\n Login timed out — no response after 5 minutes." +
|
|
2920
|
+
"\n Run the command again to retry.\n");
|
|
2917
2921
|
server.close();
|
|
2918
2922
|
process.exit(1);
|
|
2919
|
-
},
|
|
2923
|
+
}, 300000);
|
|
2920
2924
|
const { token: deviceToken, project: projectSlug } = await callbackPromise;
|
|
2921
2925
|
clearTimeout(timeout);
|
|
2922
2926
|
server.close();
|