Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Ullrich Schäfer
0c82ddc92e
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>
2026-05-01 09:15:42 +02:00

View file

@ -20,7 +20,7 @@ const clientSecret = () => process.env.WAHOO_CLIENT_SECRET ?? "";
export const wahooProvider: SyncProvider = { export const wahooProvider: SyncProvider = {
id: "wahoo", id: "wahoo",
name: "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 { getAuthUrl(redirectUri: string, state: string): string {
const params = new URLSearchParams({ const params = new URLSearchParams({