Repository navigation
Add /gpushed/cli-login to approve gpushed CLI sign-ins - #10
Merged
Merged
Conversation
gpushed login opens this page with the code shown in the terminal. It sends you through /login first if you're signed out, shows the code, and on Approve calls the gpushed API's /auth/cli/approve with your session; the CLI, polling, then gets its token.
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.
This commit was meant to be part of #9, but #9 was merged before it was pushed.
gpushed login(gpushed v0.2.2) signs in in the browser: it opens/gpushed/cli-login?code=XXXX-XXXX. Without this page, that's a 404. The page:/login?redirect=…first if you're signed out, then brings you back with the same code;POST /auth/cli/approveon the gpushed API (already deployed, Sign in to the CLI in the browser gpushed#14) with your session, then tells you to go back to the terminal;It isn't behind the superuser-only redirect that
/gpushedhas, so any smartloop user can sign the CLI in.Checks:
tsc --noEmitpasses, andnext buildcompiles and exports/gpushed/cli-login.🤖 Generated with Claude Code