Skip to content

Commit

Permalink
Refresh token response update (#61)
Browse files Browse the repository at this point in the history
Response has changed to provide tokens inside "data"
  • Loading branch information
anshuarya authored Jan 3, 2022
1 parent ed10c0e commit b16cfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wyze_sdk/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def refresh_token(self) -> WyzeResponse:
if self._refresh_token is None:
raise WyzeClientConfigurationError("client is not logged in")
response = self._api_client().refresh_token(refresh_token=self._refresh_token)
self._update_session(access_token=response["access_token"], refresh_token=response["refresh_token"])
self._update_session(access_token=response["data"]["access_token"], refresh_token=response["data"]["refresh_token"])
return response

def user_get_info(self) -> WyzeResponse:
Expand Down

0 comments on commit b16cfba

Please sign in to comment.