pending.nvim/lua/pending/sync
Barrett Ruth 2742d1f310 fix(oauth): resolve re-auth deadlock and improve flow robustness
Problem: in-flight TCP server held port 18392 for up to 120 seconds.
Calling `auth()` again caused `bind()` to fail silently — the browser
opened but no listener could receive the OAuth callback. `_wipe()` on
exchange failure also destroyed credentials, forcing full re-setup.

Solution: `_active_close` at module scope cancels any in-flight server
when `auth()` or `clear_tokens()` is called. Binding is guarded with
`pcall`; the browser only opens after the server is listening. Swapped
`_wipe()` for `clear_tokens()` in `_exchange_code` to preserve
credentials on failure. Added `select_account` to `prompt` so Google
always shows the account picker on re-auth.
2026-03-06 15:43:52 -05:00
..
gcal.lua fix(sync): replace cryptic sigil counters with readable output (#86) 2026-03-06 13:26:23 -05:00
gtasks.lua fix(sync): replace cryptic sigil counters with readable output (#86) 2026-03-06 13:26:23 -05:00
oauth.lua fix(oauth): resolve re-auth deadlock and improve flow robustness 2026-03-06 15:43:52 -05:00