Skip to content

fix(cli): treat HTTP 419 as expired session - #79

Merged
9trocode merged 1 commit into
mainfrom
fix/cli-auth-419-message
Jul 25, 2026
Merged

fix(cli): treat HTTP 419 as expired session#79
9trocode merged 1 commit into
mainfrom
fix/cli-auth-419-message

Conversation

@9trocode

Copy link
Copy Markdown
Contributor

Summary

  • Detect HTTP 419 and "session has ended" in HandleAuthError
  • Guide users to `pipeops login` (same path as expired JWT)

Why

API returns 419 when the server-side session row is gone while local JWT still looks valid; CLI was showing opaque "419 419" failures.

Test plan

  • go test ./utils/
  • With ended session: pipeops me shows re-login guidance

Controller ends user sessions with HTTP 419 even when JWT exp is still
valid. Map 419 / session-has-ended errors to an explicit pipeops login
prompt instead of a generic API failure.
@9trocode
9trocode merged commit 32dc1b7 into main Jul 25, 2026
1 of 2 checks passed
@9trocode
9trocode deleted the fix/cli-auth-419-message branch July 25, 2026 10:00
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