Skip to content

Commit b7d05cf

Browse files
authored
Migrate to new JWT endpoint (#1500)
1 parent c6dec10 commit b7d05cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyoverkiz/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async def somfy_tahoma_get_access_token(self) -> str:
259259
"""
260260
# Request access token
261261
async with self.session.post(
262-
SOMFY_API + "/oauth/oauth/v2/token",
262+
SOMFY_API + "/oauth/oauth/v2/token/jwt",
263263
data=FormData(
264264
{
265265
"grant_type": "password",
@@ -303,7 +303,7 @@ async def refresh_token(self) -> None:
303303
# &grant_type=refresh_token&refresh_token=REFRESH_TOKEN
304304
# Request access token
305305
async with self.session.post(
306-
SOMFY_API + "/oauth/oauth/v2/token",
306+
SOMFY_API + "/oauth/oauth/v2/token/jwt",
307307
data=FormData(
308308
{
309309
"grant_type": "refresh_token",

0 commit comments

Comments
 (0)