Skip to content

Commit ae031d9

Browse files
committed
fix: use SSO when HEROKU_LEGACY_SSO is set
1 parent 2f611ac commit ae031d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class Login {
5151
input = 'interactive'
5252
} else {
5353
await ux.anykey(`heroku: Press any key to open up the browser to login or ${color.yellow('q')} to exit`)
54-
input = 'browser'
54+
input = process.env.HEROKU_LEGACY_SSO === '1' ? 'sso' : 'browser'
5555
}
5656
}
5757
try {

0 commit comments

Comments
 (0)