trails/apps/journal/app/lib/sync/providers
Ullrich Schäfer b60cd96736
Revoke Wahoo tokens on disconnect; surface OAuth errors
Disconnecting a sync provider now calls the provider's revoke endpoint
(DELETE /v1/permissions for Wahoo) before dropping the local row, so
tokens don't accumulate against Wahoo's per-(app,user) cap. The token
exchange now classifies Wahoo's "Too many unrevoked access tokens" 400
as a distinct OAuthError code, and the connections settings page shows
a localized banner for that and other connect failures instead of a
silent ?error=sync_failed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 10:03:50 +02:00
..
__fixtures__ Fix Wahoo import bugs, add Import All, update spec 2026-04-05 17:47:48 +02:00
wahoo.test.ts Revoke Wahoo tokens on disconnect; surface OAuth errors 2026-05-01 10:03:50 +02:00
wahoo.ts Revoke Wahoo tokens on disconnect; surface OAuth errors 2026-05-01 10:03:50 +02:00