Skip to content

docs: clarify porter auth login/logout token handling#299

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
docs/cli-auth-token-ux
Open

docs: clarify porter auth login/logout token handling#299
mintlify[bot] wants to merge 1 commit into
mainfrom
docs/cli-auth-token-ux

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 28, 2026

Summary

Documents UX improvements to porter auth login and porter auth logout around stale credentials and the PORTER_TOKEN environment variable.

Changes

  • porter auth login: explain that a stale on-disk token is auto-cleared and the browser flow resumes, and that a server-rejected PORTER_TOKEN now surfaces a clear error.
  • porter auth logout: document that logout no longer requires a valid session, treats 401/403/404 from server-side revoke as already-invalid (clears local state), preserves local credentials on other server errors, and warns when PORTER_TOKEN is still set after logout.

Context

Source PR: porter-dev/code#5828 — improves CLI auth UX so stale tokens and stray PORTER_TOKEN env vars no longer leave users stuck between login states.

/cc @dgtown for review

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 28, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
porter 🟢 Ready View Preview May 28, 2026, 9:29 PM

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.

0 participants