Rejected token with `--no-interactive` still opens the browser login prompt
Author: masenfCreated Sep 24, 2026Updated Sep 24, 2026
Package: reflex-hosting-cli (reproduced on main at ea035ea47 and on #7207 at 988718e78)
When REFLEX_ACCESS_TOKEN holds an invalid token, a command run with --no-interactive starts the browser login flow and waits for Enter:
$ REFLEX_ACCESS_TOKEN=bogus-token reflex cloud apps list --no-interactive
... https://build.reflex.dev/cli/login?request_id=... to authenticate.
please hit 'Enter' or 'Return' after login on website complete:On main it then prints Unable to list deployments; on #7207 it prints Aborted!. Both exit 1, but only after the prompt, which hangs CI when stdin is a TTY or stays open.
whoami already does the right thing with the same token:
$ REFLEX_ACCESS_TOKEN=bogus-token reflex cloud whoami
The access token from the REFLEX_ACCESS_TOKEN environment variable was rejected: access denied (...)
[exit=1]Without any token, --no-interactive also fails fast (Token is required for non-interactive mode.).
Expected: with --no-interactive, a rejected token fails immediately, with the same message whoami gives. The interactive login is never offered.
Source: reflex-dev/reflex