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 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-05-01 09:15:42 +02:00
parent b0f8be2765
commit 0c82ddc92e
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -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({