auth: Improve sce auth CLI command experience - #218
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the local
auth statusflow withsce auth whoami.Fetch the authenticated user profile from the Control Plane
/meendpoint.Add deterministic text and JSON output for
whoami, including:Make
loginvalidate and renew stored credentials when possible.Fall back to device flow when stored credentials cannot be renewed.
Remove the redundant
auth renewsubcommand.Expose
authin top-level CLI help.Update command-surface documentation to remove the retired
statusroute.