@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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. 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 120 seconds for the callback
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 Error: Timed out waiting for browser login (120s).\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
- }, 120000);
2923
+ }, 300000);
2920
2924
  const { token: deviceToken, project: projectSlug } = await callbackPromise;
2921
2925
  clearTimeout(timeout);
2922
2926
  server.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overscore/cli",
3
- "version": "0.13.18",
3
+ "version": "0.13.20",
4
4
  "description": "CLI for deploying Overscore dashboards and publishing analyses",
5
5
  "bin": {
6
6
  "overscore": "dist/index.js"