@gradual-so/cli 0.1.2 → 0.1.3
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22201,12 +22201,13 @@ async function deviceLogin(dashboardUrl) {
|
|
|
22201
22201
|
throw new Error(`Failed to request device code: ${text}`);
|
|
22202
22202
|
}
|
|
22203
22203
|
const codeData = await codeResponse.json();
|
|
22204
|
+
const verifyUrl = codeData.verification_uri_complete || codeData.verification_uri;
|
|
22204
22205
|
console.log();
|
|
22205
22206
|
console.log(` Your authorization code: ${source_default.bold.cyan(codeData.user_code)}`);
|
|
22206
22207
|
console.log();
|
|
22207
|
-
console.log(` ${source_default.dim(
|
|
22208
|
+
console.log(` ${source_default.dim(`Verify at: ${verifyUrl}`)}`);
|
|
22208
22209
|
console.log();
|
|
22209
|
-
await open_default(
|
|
22210
|
+
await open_default(verifyUrl);
|
|
22210
22211
|
let pollInterval = codeData.interval * 1000;
|
|
22211
22212
|
const deadline = Date.now() + codeData.expires_in * 1000;
|
|
22212
22213
|
while (Date.now() < deadline) {
|