now strava sync works
This commit is contained in:
@@ -126,8 +126,10 @@ class StravaClient:
|
||||
"client_secret": self.client_secret,
|
||||
"code": code,
|
||||
"grant_type": "authorization_code",
|
||||
"redirect_uri": f"http://localhost:{CALLBACK_PORT}/callback",
|
||||
}, timeout=30)
|
||||
r.raise_for_status()
|
||||
if not r.ok:
|
||||
raise RuntimeError(f"Token exchange failed ({r.status_code}): {r.text}")
|
||||
self._tokens = r.json()
|
||||
self._tokens["client_id"] = self.client_id
|
||||
self._save_tokens()
|
||||
|
||||
Reference in New Issue
Block a user