Skip to content

Commit

Permalink
Specify scope in API token refresh
Browse files Browse the repository at this point in the history
Tesla API requires to specify access scope to return certain data for quite some time now. Without "offline_access", it won't return a new refresh token.
  • Loading branch information
dtiefnig authored Apr 1, 2024
1 parent f4dcb13 commit f8c19db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/TWCManager/Vehicle/TeslaAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def apiRefresh(self):
"client_id": self.refreshClientID,
"grant_type": "refresh_token",
"refresh_token": self.getCarApiRefreshToken(),
"scope": "offline_access",
}
req = None
now = time.time()
Expand Down

0 comments on commit f8c19db

Please sign in to comment.