pending.nvim/lua/pending/sync
Barrett Ruth 25c8bd4eb0 refactor(sync): extract shared OAuth into oauth.lua
Problem: `gcal.lua` and `gtasks.lua` duplicated ~250 lines of identical
OAuth code (token management, PKCE flow, credential loading, curl
helpers, url encoding).

Solution: Extract a shared `OAuthClient` metatable in `oauth.lua` with
module-level utilities and instance methods. Both backends now delegate
all OAuth to `oauth.new()`. Skip `oauth` in `health.lua` backend
discovery by checking for a `name` field.
2026-03-05 01:17:47 -05:00
..
gcal.lua refactor(sync): extract shared OAuth into oauth.lua 2026-03-05 01:17:47 -05:00
gtasks.lua refactor(sync): extract shared OAuth into oauth.lua 2026-03-05 01:17:47 -05:00
oauth.lua refactor(sync): extract shared OAuth into oauth.lua 2026-03-05 01:17:47 -05:00