Skip to content

auth: Improve sce auth CLI command experience - #218

Merged
davidabram merged 3 commits into
mainfrom
sce-auth-cli-improvements
Aug 19, 2026
Merged

auth: Improve sce auth CLI command experience#218
davidabram merged 3 commits into
mainfrom
sce-auth-cli-improvements

Conversation

@stefanskoricdev

Copy link
Copy Markdown
Contributor
  • Replace the local auth status flow with sce auth whoami.

  • Fetch the authenticated user profile from the Control Plane /me endpoint.

  • Add deterministic text and JSON output for whoami, including:

    • logged-out guidance
    • workspace
    • role
    • name
  • Make login validate and renew stored credentials when possible.

  • Fall back to device flow when stored credentials cannot be renewed.

  • Remove the redundant auth renew subcommand.

  • Expose auth in top-level CLI help.

  • Update command-surface documentation to remove the retired status route.

stefanskoricdev and others added 2 commits August 18, 2026 16:01
Expose auth in top-level help and remove the redundant renew subcommand.
Make login reuse stored-credential validation and renewal, with device-flow fallback and login-labeled results.

Co-authored-by: SCE <sce@crocoder.dev>
Expose sce auth whoami and retrieve the authenticated profile from the Control Plane /me endpoint.

Render deterministic text and JSON profile output, including logged-out guidance and optional workspace, role, and name fields. Update command-surface documentation to remove the retired status route.

Co-authored-by: SCE <sce@crocoder.dev>
@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sce-config-json Ready Ready Preview Aug 18, 2026 6:06pm

Request Review

Treat terminal control-plane errors as a distinct batch outcome so stream synchronization returns immediately without a `/state` refresh. Preserve reconciliation for conflicts, ambiguous responses, and transport failures, and verify terminal failures do not invoke refresh.

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram merged commit 1841e49 into main Aug 19, 2026
10 checks passed
@davidabram
davidabram deleted the sce-auth-cli-improvements branch August 19, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants