Skip to content

Commit 5db4c56

Browse files
committed
Simplify plain login to not try opening the browser
1 parent 52d4a81 commit 5db4c56

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

cli/src/login/plain-login.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import open from 'open'
21
import { cyan, green, red, yellow, bold } from 'picocolors'
32

43
import { WEBSITE_URL } from './constants'
@@ -47,15 +46,7 @@ export async function runPlainLogin(): Promise<void> {
4746
console.log()
4847
console.log(cyan(loginData.loginUrl))
4948
console.log()
50-
51-
// Try to open browser, silently ignore failure (expected on remote servers)
52-
try {
53-
await open(loginData.loginUrl)
54-
console.log(green('Browser opened. Waiting for login...'))
55-
} catch {
56-
console.log(yellow('Could not open browser — please open the URL above manually.'))
57-
}
58-
49+
console.log(yellow('Please open the URL above manually to complete login.'))
5950
console.log()
6051
console.log('Waiting for login...')
6152

0 commit comments

Comments
 (0)