From fc833555ac0ff120437a650f091a7803cffe4ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccolo=CC=80=20Zapponi?= Date: Thu, 5 Nov 2020 08:02:05 +0000 Subject: [PATCH] Added new trust token support for old 2SA method --- pyicloud/base.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyicloud/base.py b/pyicloud/base.py index 79f7720..2bbfdce 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -414,9 +414,7 @@ class PyiCloudService(object): return False raise - # Re-authenticate, which will both update the HSA data, and - # ensure that we save the X-APPLE-WEBAUTH-HSA-TRUST cookie. - self.authenticate() + self.trust_session() return not self.requires_2sa