Skip to content

Add OAuth login with PKCE#2

Merged
gnapse merged 1 commit into
mainfrom
oauth-login
Jan 15, 2026
Merged

Add OAuth login with PKCE#2
gnapse merged 1 commit into
mainfrom
oauth-login

Conversation

@gnapse

@gnapse gnapse commented Jan 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • td login now opens browser for OAuth authorization (PKCE flow, no secrets required)
  • td login token <token> preserved for manual authentication
  • Local callback server on localhost:8765 receives OAuth response
  • Updated README with new login instructions

Test plan

Prerequisites: Run npm link (as instructed in README) and npm run build to have the td command available with these changes.

  • Run td login and complete OAuth flow in browser
  • Verify token is saved to ~/.config/todoist-cli/config.json
  • Run td today to verify authentication works
  • Test timeout by not completing OAuth flow within 3 minutes

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gnapse gnapse requested a review from scottlovegrove January 15, 2026 18:39
@gnapse gnapse self-assigned this Jan 15, 2026
@gnapse gnapse requested a review from henningmu January 15, 2026 18:44
@gnapse gnapse merged commit ff737ab into main Jan 15, 2026
@gnapse gnapse deleted the oauth-login branch January 15, 2026 21:43
Comment thread src/commands/login.ts
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.

2 participants