Skip to content

Commit c19df48

Browse files
committed
fix: sso login
1 parent 92a5a59 commit c19df48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/login.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ export class Login {
4949
if (opts.expiresIn) {
5050
// can't use browser with --expires-in
5151
input = 'interactive'
52+
} else if (process.env.HEROKU_LEGACY_SSO === '1') {
53+
input = 'sso'
5254
} else {
5355
await ux.anykey(`heroku: Press any key to open up the browser to login or ${color.yellow('q')} to exit`)
54-
input = process.env.HEROKU_LEGACY_SSO === '1' ? 'sso' : 'browser'
56+
input = 'browser'
5557
}
5658
}
5759
try {

0 commit comments

Comments
 (0)