Skip to content

fix: use OAuth device flow for BYOP#1

Draft
voodoohop wants to merge 1 commit into
Tolerable:mainfrom
voodoohop:codex/use-oauth-device-flow
Draft

fix: use OAuth device flow for BYOP#1
voodoohop wants to merge 1 commit into
Tolerable:mainfrom
voodoohop:codex/use-oauth-device-flow

Conversation

@voodoohop

Copy link
Copy Markdown
  • Replaces the localhost URL-fragment callback with Pollinations' OAuth device flow.
  • Opens the verification URL and handles the documented polling interval, expiry, pending, and slow-down responses.
  • Stores the delegated key with user-only permissions and prevents the project-local key file from being committed.
  • Updates setup documentation for the new authorization flow.

The previous callback could not receive an access token from the URL fragment because fragments are never sent to the local HTTP server.

Checks:

  • Python compilation
  • Mocked pending → slow-down → success flow, client attribution, and 0600 storage
  • git diff --check

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