Skip to content

Commit d3bb991

Browse files
authored
Add refresh token parameter to do_sisu_authorization
1 parent 5743a3c commit d3bb991

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • xbox/webapi/authentication

xbox/webapi/authentication/xal.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ async def request_sisu_authentication(
231231
resp.headers["X-SessionId"],
232232
)
233233

234-
async def do_sisu_authorization(
235-
self, sisu_session_id: str, access_token_jwt: str, device_token_jwt: str
234+
async def do_sisu_authorization(
235+
self, sisu_session_id: str, access_token_jwt: str, device_token_jwt: str, refresh_sisu:str
236236
) -> SisuAuthorizationResponse:
237237
"""
238238
Sisu authorization
@@ -250,14 +250,16 @@ async def do_sisu_authorization(
250250
"SiteName": "user.auth.xboxlive.com",
251251
"SessionId": sisu_session_id,
252252
"ProofKey": self.session.request_signer.proof_field,
253+
"refresh_token": refresh_sisu,
253254
}
254255

255256
resp = await self.session.send_signed(
256257
"POST", url, headers=headers, json=post_body
257258
)
258259
resp.raise_for_status()
259-
return SisuAuthorizationResponse(**resp.json())
260-
260+
response_data = resp.json()
261+
return SisuAuthorizationResponse(**response_data)
262+
261263
async def xsts_authorization(
262264
self,
263265
device_token_jwt: str,

0 commit comments

Comments
 (0)