name = "ripgit-auth" main = "src/index.ts" compatibility_date = "2025-01-01" compatibility_flags = ["nodejs_compat"] # KV namespace for OAuth token storage (workers-oauth-provider uses this) # After creating, fill in the IDs below: # wrangler kv namespace create OAUTH_KV # wrangler kv namespace create OAUTH_KV --preview [[kv_namespaces]] binding = "OAUTH_KV" # Service binding to the ripgit worker. # The service name must match `name` in ripgit's wrangler.toml. [[services]] binding = "RIPGIT" service = "ripgit" [vars] # GitHub OAuth App client ID. # Create an app at https://github.com/settings/applications/new # Homepage URL: https://your-worker.workers.dev # Authorization callback: https://your-worker.workers.dev/oauth/callback # (local dev callback: http://localhost:8787/oauth/callback) GITHUB_CLIENT_ID = "" # GitHub OAuth App client secret — set as a secret, not a var: # wrangler secret put GITHUB_CLIENT_SECRET # Random secret for signing session cookies (any 32+ char string): # wrangler secret put SESSION_SECRET