claudeusage-sync 0.3.0 → 0.3.1
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/auth/device-flow.js +3 -2
- package/package.json +1 -1
package/dist/auth/device-flow.js
CHANGED
|
@@ -45,10 +45,11 @@ export async function runDeviceFlow(apiBase) {
|
|
|
45
45
|
}
|
|
46
46
|
const start = startResponseSchema.parse(await startResponse.json());
|
|
47
47
|
console.log("");
|
|
48
|
-
console.log(chalk.bold("authorize this device:"));
|
|
48
|
+
console.log(chalk.bold("authorize this device — open this link:"));
|
|
49
49
|
console.log(` ${chalk.hex("#d97757")(start.verificationUriComplete)}`);
|
|
50
50
|
console.log("");
|
|
51
|
-
console.log(
|
|
51
|
+
console.log(chalk.gray("it should open in your browser automatically. if it didn't, copy the link above."));
|
|
52
|
+
console.log(`${chalk.gray("on another device? go to")} ${start.verificationUri} ${chalk.gray("and enter code")} ${chalk.bold(start.userCode)}`);
|
|
52
53
|
console.log("");
|
|
53
54
|
await open(start.verificationUriComplete).catch(() => undefined);
|
|
54
55
|
const spinner = ora("waiting for browser approval...").start();
|