openhome-cli 0.1.7 → 0.1.8
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 +6 -2
- package/package.json +1 -1
- package/src/commands/login.ts +6 -2
package/dist/cli.js
CHANGED
|
@@ -387,11 +387,15 @@ async function setupJwt() {
|
|
|
387
387
|
` Mac \u2192 press ${chalk2.cyan("Cmd + Option + J")}`,
|
|
388
388
|
` Windows / Linux \u2192 press ${chalk2.cyan("F12")}, then click ${chalk2.cyan("Console")}`,
|
|
389
389
|
"",
|
|
390
|
-
`${chalk2.bold("2.")}
|
|
390
|
+
`${chalk2.bold("2.")} Chrome may show a warning:`,
|
|
391
|
+
` ${chalk2.yellow(`"Don't paste code you don't understand..."`)}`,
|
|
392
|
+
` If so, type ${chalk2.cyan("allow pasting")} and press ${chalk2.bold("Enter")} first.`,
|
|
393
|
+
"",
|
|
394
|
+
`${chalk2.bold("3.")} Paste this command and press ${chalk2.bold("Enter")}:`,
|
|
391
395
|
"",
|
|
392
396
|
` ${chalk2.green("copy(localStorage.getItem('token'))")}`,
|
|
393
397
|
"",
|
|
394
|
-
`${chalk2.bold("
|
|
398
|
+
`${chalk2.bold("4.")} Your token is now copied to your clipboard.`,
|
|
395
399
|
` Come back here and paste it below.`
|
|
396
400
|
].join("\n"),
|
|
397
401
|
"How to get your session token"
|
package/package.json
CHANGED
package/src/commands/login.ts
CHANGED
|
@@ -139,11 +139,15 @@ export async function setupJwt(): Promise<void> {
|
|
|
139
139
|
` Mac → press ${chalk.cyan("Cmd + Option + J")}`,
|
|
140
140
|
` Windows / Linux → press ${chalk.cyan("F12")}, then click ${chalk.cyan("Console")}`,
|
|
141
141
|
"",
|
|
142
|
-
`${chalk.bold("2.")}
|
|
142
|
+
`${chalk.bold("2.")} Chrome may show a warning:`,
|
|
143
|
+
` ${chalk.yellow("\"Don't paste code you don't understand...\"")}`,
|
|
144
|
+
` If so, type ${chalk.cyan("allow pasting")} and press ${chalk.bold("Enter")} first.`,
|
|
145
|
+
"",
|
|
146
|
+
`${chalk.bold("3.")} Paste this command and press ${chalk.bold("Enter")}:`,
|
|
143
147
|
"",
|
|
144
148
|
` ${chalk.green("copy(localStorage.getItem('token'))")}`,
|
|
145
149
|
"",
|
|
146
|
-
`${chalk.bold("
|
|
150
|
+
`${chalk.bold("4.")} Your token is now copied to your clipboard.`,
|
|
147
151
|
` Come back here and paste it below.`,
|
|
148
152
|
].join("\n"),
|
|
149
153
|
"How to get your session token",
|