diff --git a/scripts/bao-session.sh b/scripts/bao-session.sh index acf1f44..010a6c6 100755 --- a/scripts/bao-session.sh +++ b/scripts/bao-session.sh @@ -65,9 +65,9 @@ cmd_status() { } cmd_login() { - if [[ ! -t 0 ]]; then - red "login needs an interactive terminal."; exit 2 - fi + # No TTY guard: the OIDC flow reads nothing from stdin. It starts a local + # callback listener, prints a URL, and waits for the browser to complete it, + # so this works fine from a non-interactive invocation. echo "Opening OIDC login. Under WSL2 no browser will launch —" echo "copy the URL below into your Windows browser, then come back here." echo