meetscribe 1.0.0 → 1.0.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/package.json +1 -1
- package/src/cli/commands/login.js +12 -0
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ async function loginWithBrowser() {
|
|
|
85
85
|
const session = await client.createCliSession();
|
|
86
86
|
const authUrl = session.data?.auth_url;
|
|
87
87
|
const sessionId = session.data?.session_id;
|
|
88
|
+
const verificationCode = session.data?.code;
|
|
88
89
|
|
|
89
90
|
if (!authUrl || !sessionId) {
|
|
90
91
|
spinner.fail('Failed to create auth session');
|
|
@@ -95,6 +96,17 @@ async function loginWithBrowser() {
|
|
|
95
96
|
spinner.stop();
|
|
96
97
|
|
|
97
98
|
console.log();
|
|
99
|
+
|
|
100
|
+
// Show verification code prominently
|
|
101
|
+
if (verificationCode) {
|
|
102
|
+
console.log(chalk.bold('Verification Code:'));
|
|
103
|
+
console.log();
|
|
104
|
+
console.log(' ' + chalk.bgCyan.black.bold(` ${verificationCode} `));
|
|
105
|
+
console.log();
|
|
106
|
+
console.log(chalk.dim('Compare this code with the one shown in the browser'));
|
|
107
|
+
console.log();
|
|
108
|
+
}
|
|
109
|
+
|
|
98
110
|
info('Opening browser for authentication...');
|
|
99
111
|
console.log();
|
|
100
112
|
console.log(chalk.dim('If browser does not open, visit:'));
|