Skip to content

feat(login): create agent account on --github login when none exists - #33

Open
zoya-brd wants to merge 1 commit into
mainfrom
feat/github-agent-signup
Open

zoya-brd wants to merge 1 commit into
mainfrom
feat/github-agent-signup

Conversation

@zoya-brd

@zoya-brd zoya-brd commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Previously brightdata login --github failed with "No Bright Data
account found for your GitHub email" when the GitHub identity had no
matching Bright Data account. Remove that user_not_found hard-fail so a
brand-new identity flows through the existing init->gist->verify pipeline,
is created server-side via find-or-create, and has its minted key saved
like any successful login.

The exit-code contract is unchanged and still enforced: ensure_api_key
guarantees the flow only returns with a real key, so the CLI exits 0
only when an account was created or matched and a key was received; any
verification failure throws and exits non-zero.

Update tests to assert the new behavior: a missing account no longer
dead-ends, and an init error surfaces as a generic non-zero failure.

@zoya-brd
zoya-brd marked this pull request as ready for review September 15, 2026 05:56
@zoya-brd
zoya-brd requested a review from artemo-brd September 15, 2026 05:56
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