Skip to content

[feat] Add GitHub sync and OAuth support#6

Merged
ohmydevops merged 1 commit into
ohmydevops:mainfrom
arian24b:main
Jun 9, 2026
Merged

[feat] Add GitHub sync and OAuth support#6
ohmydevops merged 1 commit into
ohmydevops:mainfrom
arian24b:main

Conversation

@arian24b

Copy link
Copy Markdown
Contributor

Implement GitHub synchronization to allow users to backup their todos to a private repository. Includes:

  • OAuth2 flow with PKCE for secure token exchange via a Cloudflare Worker.
  • GitHub API integration for repository management and file uploads.
  • Settings UI for connecting, syncing, and disconnecting GitHub.
  • Local session management for GitHub tokens using sessionStorage.

Setup Checklist (Cloudflare + GitHub OAuth)

GitHub OAuth App

  • Create OAuth App in GitHub Developer Settings.
  • Homepage URL: your public site URL.
  • Authorization callback URL: exactly your redirect URL (must match).
  • Keep Client ID + Client Secret.

Frontend env (Vite)

Cloudflare Worker

  • Deploy worker at /oauth/github.
  • Set vars:
  • GITHUB_CLIENT_ID
  • GITHUB_REDIRECT_URI
  • Set secret:
  • GITHUB_CLIENT_SECRET

Implement GitHub synchronization to allow users to backup their todos
to a private repository. Includes:

- OAuth2 flow with PKCE for secure token exchange via a Cloudflare
  Worker.
- GitHub API integration for repository management and file uploads.
- Settings UI for connecting, syncing, and disconnecting GitHub.
- Local session management for GitHub tokens using sessionStorage.
@ohmydevops ohmydevops self-requested a review May 24, 2026 19:38
@ohmydevops ohmydevops assigned ohmydevops and arian24b and unassigned ohmydevops May 24, 2026
@ohmydevops

Copy link
Copy Markdown
Owner

Sorry it's late, I'll check and add it tonight.

@ohmydevops ohmydevops merged commit 442d2a5 into ohmydevops:main Jun 9, 2026
1 check passed
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