@patchstack/connect 0.3.24 → 0.3.25

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/cli.js CHANGED
@@ -2987,7 +2987,7 @@ async function login(config, onPrompt, deps = {}) {
2987
2987
  return { status: "failed", message: `Could not start the login (HTTP ${started.status}).` };
2988
2988
  }
2989
2989
  const { device_code: deviceCode, user_code: userCode, expires_in: expiresIn, interval } = await started.json();
2990
- const verificationUri = `${new URL(base).origin}/activate`;
2990
+ const verificationUri = `${base}/device?code=${encodeURIComponent(userCode)}`;
2991
2991
  onPrompt(userCode, verificationUri);
2992
2992
  const deadline = now() + expiresIn * 1e3;
2993
2993
  const intervalMs = Math.max(1, interval) * 1e3;