@keystrokehq/cli 0.0.126 → 0.0.127
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.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4683,10 +4683,10 @@ async function runDeviceLogin(options) {
|
|
|
4683
4683
|
verificationUri,
|
|
4684
4684
|
verificationUriComplete
|
|
4685
4685
|
});
|
|
4686
|
-
else {
|
|
4687
|
-
process.stderr.write(
|
|
4688
|
-
options.openUrl
|
|
4689
|
-
}
|
|
4686
|
+
else if (options.openUrl) {
|
|
4687
|
+
process.stderr.write("Opening browser to authorize…\n");
|
|
4688
|
+
options.openUrl(verificationUriComplete);
|
|
4689
|
+
} else process.stderr.write(`Visit ${verificationUriComplete} to authorize.\n`);
|
|
4690
4690
|
const deadline = Date.now() + expiresIn * 1e3;
|
|
4691
4691
|
let pollIntervalMs = interval * 1e3;
|
|
4692
4692
|
while (Date.now() < deadline) {
|