Skip to content

feat(auth): export split-phase device flow for Codex, xAI, and Meta - #6080

Closed
jaaacki wants to merge 1 commit into
router-for-me:devfrom
jaaacki:issue/2561-device-flow
Closed

jaaacki wants to merge 1 commit into
router-for-me:devfrom
jaaacki:issue/2561-device-flow

Conversation

@jaaacki

@jaaacki jaaacki commented Sep 23, 2026

Copy link
Copy Markdown

Summary

  • Export split-phase device authorization for Codex, xAI, and Meta from sdk/auth.
  • StartDeviceFlow returns the user code and verification URL without waiting for approval.
  • PollDeviceFlow performs one token exchange. CompleteDeviceFlow repeats that exchange until the user authorizes or the flow fails.
  • Existing Login calls start, then complete. Antigravity is unchanged.

These exports let a downstream proxy drop its copied device-flow clients after the module pin moves to a release that contains this API. This pull request does not change that pin.

Test plan

  • go test ./sdk/auth/ ./internal/auth/xai/ ./internal/auth/meta/ ./internal/auth/codex/

StartDeviceFlow returns the device code without waiting for approval.
PollDeviceFlow exchanges it once and CompleteDeviceFlow repeats until
the user authorizes. Login calls those phases.
@github-actions

Copy link
Copy Markdown

This pull request targeted main.

The base branch has been automatically changed to dev.

@github-actions
github-actions Bot changed the base branch from main to dev September 23, 2026 11:35
@jaaacki jaaacki closed this Sep 25, 2026
@jaaacki
jaaacki deleted the issue/2561-device-flow branch September 25, 2026 05:57
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