Skip to content

feat: add headless login flow#9

Open
adrianorocha-dev wants to merge 2 commits into
jdwit:mainfrom
adrianorocha-dev:feat/headless-login
Open

feat: add headless login flow#9
adrianorocha-dev wants to merge 2 commits into
jdwit:mainfrom
adrianorocha-dev:feat/headless-login

Conversation

@adrianorocha-dev
Copy link
Copy Markdown

@adrianorocha-dev adrianorocha-dev commented May 7, 2026

Summary

  • Adds ytstudio login --headless for server environments where the CLI cannot open a browser locally.
  • Reuses the existing Desktop OAuth client and scopes by printing the authorization URL, accepting the failed loopback redirect URL from another browser, validating OAuth state, and exchanging the authorization code server-side.
  • Keeps the existing ytstudio login local-server flow unchanged and updates setup docs for the headless path.

Test plan

  • uv run pytest
  • uv run ruff check src tests
  • uv run ruff format --check src tests
  • Manual install from fork branch on a VPS and verify the headless prompt/token exchange path reaches Google OAuth
  • Full live YouTube channel login verification with maintainer OAuth credentials

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