Skip to content

Commit fc9669e

Browse files
authored
Make refresh_sisu parameter optional in authorization
Updated the do_sisu_authorization method to make the refresh_sisu parameter optional.
1 parent fe3677f commit fc9669e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • xbox/webapi/authentication

‎xbox/webapi/authentication/xal.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from typing import Callable, Tuple
1111
from urllib import parse
1212
import uuid
13-
13+
from typing import Optional
1414
import httpx
1515
from ms_cv import CorrelationVector
1616

@@ -232,7 +232,7 @@ async def request_sisu_authentication(
232232
)
233233

234234
async def do_sisu_authorization(
235-
self, sisu_session_id: str, access_token_jwt: str, device_token_jwt: str, refresh_sisu:str
235+
self, sisu_session_id: str, access_token_jwt: str, device_token_jwt: str, refresh_sisu: Optional[str]
236236
) -> SisuAuthorizationResponse:
237237
"""
238238
Sisu authorization
@@ -250,7 +250,7 @@ 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,
253+
"refresh_sisu": refresh_sisu
254254
}
255255

256256
resp = await self.session.send_signed(

0 commit comments

Comments
 (0)