Skip to content

Show warning after login if new token is shadowed. - #5173

Merged
NullHypothesis merged 3 commits into
masterfrom
maybe-show-login-warning
Sep 3, 2026
Merged

Show warning after login if new token is shadowed.#5173
NullHypothesis merged 3 commits into
masterfrom
maybe-show-login-warning

Conversation

@NullHypothesis

Copy link
Copy Markdown
Contributor

There's a UX footgun where a user runs fly auth login successfully but subsequent commands still fail because an invalid FLY_API_TOKEN is set, which takes precedence over the newly obtained token.

This PR teaches fly auth login to print a warning if either FLY_API_TOKEN or FLY_ACCESS_TOKEN is set.

There's a UX footgun where a user runs `fly auth login` successfully but
subsequent commands still fail because an invalid `FLY_API_TOKEN` is
set, which takes precedence over the newly obtained token.

This PR teaches `fly auth login` to print a warning if either
`FLY_API_TOKEN` or `FLY_ACCESS_TOKEN` is set.
@NullHypothesis
NullHypothesis merged commit ab8d26d into master Sep 3, 2026
21 of 22 checks passed
@NullHypothesis
NullHypothesis deleted the maybe-show-login-warning branch September 3, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant