@telelabsai/ship 1.1.7 → 1.1.9
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/cli/commands/auth.js +3 -1
- package/package.json +1 -1
package/cli/commands/auth.js
CHANGED
|
@@ -64,7 +64,9 @@ function login() {
|
|
|
64
64
|
|
|
65
65
|
server.listen(0, () => {
|
|
66
66
|
const port = server.address().port;
|
|
67
|
-
const
|
|
67
|
+
const hostname = os.hostname();
|
|
68
|
+
const platform = process.platform === 'darwin' ? 'macOS' : process.platform === 'win32' ? 'Windows' : 'Linux';
|
|
69
|
+
const authUrl = `${DASHBOARD_URL}/authorize-cli?port=${port}&device=${encodeURIComponent(hostname)}&platform=${encodeURIComponent(platform)}`;
|
|
68
70
|
|
|
69
71
|
console.log(` Auth URL: ${authUrl}\n`);
|
|
70
72
|
console.log(' Waiting for authorization...\n');
|