Skip to content

Commit

Permalink
fix: added data to the get_device_code call
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Barcella committed Jun 3, 2024
1 parent 35290d6 commit e5db931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fattureincloud_python_sdk/oauth2/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_device_code(self, scopes: Iterable[Scope]):
"scope": scope,
}

res = self.execute_post(token_uri, data)
res = self.execute_post(token_uri, data)["data"]
return OAuth2DeviceCodeResponse(
res["device_code"],
res["user_code"],
Expand Down

0 comments on commit e5db931

Please sign in to comment.