@overscore/cli 0.13.17 → 0.13.19

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2851,12 +2851,16 @@ async function authLogin() {
2851
2851
  catch {
2852
2852
  // Browser open failed — user can follow the printed URL
2853
2853
  }
2854
- // Wait up to 120 seconds for the callback
2854
+ // Wait up to 5 minutes for the callback. A first-time login (OAuth, 2FA, or
2855
+ // just stepping away) can easily blow past a tight window, and a premature
2856
+ // timeout is worse than a long wait — it strands a login the user is mid-way
2857
+ // through and shows a scary error for something that was about to succeed.
2855
2858
  const timeout = setTimeout(() => {
2856
- console.error("\n Error: Timed out waiting for browser login (120s).\n");
2859
+ console.error("\n Login timed out no response after 5 minutes." +
2860
+ "\n Run the command again to retry.\n");
2857
2861
  server.close();
2858
2862
  process.exit(1);
2859
- }, 120000);
2863
+ }, 300000);
2860
2864
  const { token: deviceToken, project: projectSlug } = await callbackPromise;
2861
2865
  clearTimeout(timeout);
2862
2866
  server.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overscore/cli",
3
- "version": "0.13.17",
3
+ "version": "0.13.19",
4
4
  "description": "CLI for deploying Overscore dashboards and publishing analyses",
5
5
  "bin": {
6
6
  "overscore": "dist/index.js"