From bdd3e138c8c858033d94c8e64e154f23fd0e3d78 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 5 Mar 2026 01:17:57 -0500 Subject: [PATCH] feat(sync): ship bundled OAuth credentials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Users must manually create a Google Cloud project and place a credentials JSON file before sync works — terrible onboarding. Solution: Add `client_id`/`client_secret` fields to `GcalConfig` and `GtasksConfig`. `oauth.lua` resolves credentials in three tiers: config fields, credentials file, then bundled defaults (placeholders for now). --- lua/pending/config.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/pending/config.lua b/lua/pending/config.lua index 58da035..263cc8c 100644 --- a/lua/pending/config.lua +++ b/lua/pending/config.lua @@ -9,9 +9,13 @@ ---@class pending.GcalConfig ---@field calendar? string ---@field credentials_path? string +---@field client_id? string +---@field client_secret? string ---@class pending.GtasksConfig ---@field credentials_path? string +---@field client_id? string +---@field client_secret? string ---@class pending.SyncConfig ---@field gcal? pending.GcalConfig