diff --git a/pyicloud/base.py b/pyicloud/base.py index 8f5e126..f69e1a0 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -281,7 +281,7 @@ class PyiCloudService(object): data = dict(self.user) - data["rememberMe"] = False + data["rememberMe"] = True data["trustTokens"] = [] if self.session_data.get("trust_token"): data["trustTokens"] = [self.session_data.get("trust_token")] @@ -316,7 +316,7 @@ class PyiCloudService(object): data = { "accountCountryCode": self.session_data.get("account_country"), "dsWebAuthToken": self.session_data.get("session_token"), - "extended_login": False, + "extended_login": True, "trustToken": self.session_data.get("trust_token", ""), } diff --git a/tests/const_login.py b/tests/const_login.py index 352c2ae..bb87eb6 100644 --- a/tests/const_login.py +++ b/tests/const_login.py @@ -188,7 +188,7 @@ LOGIN_WORKING = { "settings", ], "version": 2, - "isExtendedLogin": False, + "isExtendedLogin": True, "pcsServiceIdentitiesIncluded": True, "hsaChallengeRequired": False, "requestInfo": {"country": "FR", "timeZone": "GMT+1", "region": "IDF"}, @@ -381,7 +381,7 @@ LOGIN_2FA = { "settings", ], "version": 2, - "isExtendedLogin": False, + "isExtendedLogin": True, "pcsServiceIdentitiesIncluded": False, "hsaChallengeRequired": True, "requestInfo": {"country": "FR", "timeZone": "GMT+1", "region": "IDF"},