Skip to content

Commit 7885a92

Browse files
committed
Use new OAuth endpoints
1 parent 3d852af commit 7885a92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tesla_fleet_api/tesla/oauth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def get_refresh_token(self, code: str) -> None:
6060
self.server = SERVERS.get(self.region)
6161

6262
async with self.session.post(
63-
"https://auth.tesla.com/oauth2/v3/token",
63+
"https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/token",
6464
data={
6565
"grant_type": "authorization_code",
6666
"client_id": self.client_id,
@@ -89,7 +89,7 @@ async def refresh_access_token(self) -> dict[str, Any]:
8989
if not self.refresh_token:
9090
raise ValueError("Refresh token is missing")
9191
async with self.session.post(
92-
"https://auth.tesla.com/oauth2/v3/token",
92+
"https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/token",
9393
data={
9494
"grant_type": "refresh_token",
9595
"client_id": self.client_id,

0 commit comments

Comments
 (0)