From 0c82ddc92e74da64b9687923841f1a04e2550889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Fri, 1 May 2026 09:15:42 +0200 Subject: [PATCH] Drop routes_write from Wahoo OAuth scopes Wahoo's authorize endpoint rejects routes_write as an invalid scope for our OAuth app. Until Wahoo support enables it, request only the three scopes the import flow needs so connecting an account works again. The push pipeline still checks grantedScopes for routes_write and returns scope_missing, so the Send to Wahoo path stays gated. Co-Authored-By: Claude Opus 4.7 --- apps/journal/app/lib/sync/providers/wahoo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/journal/app/lib/sync/providers/wahoo.ts b/apps/journal/app/lib/sync/providers/wahoo.ts index f9f998f..be6064f 100644 --- a/apps/journal/app/lib/sync/providers/wahoo.ts +++ b/apps/journal/app/lib/sync/providers/wahoo.ts @@ -20,7 +20,7 @@ const clientSecret = () => process.env.WAHOO_CLIENT_SECRET ?? ""; export const wahooProvider: SyncProvider = { id: "wahoo", name: "Wahoo", - scopes: ["workouts_read", "user_read", "offline_data", "routes_write"], + scopes: ["workouts_read", "user_read", "offline_data"], getAuthUrl(redirectUri: string, state: string): string { const params = new URLSearchParams({