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:
parent
b0f8be2765
commit
0c82ddc92e
1 changed files with 1 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue