diff options
Diffstat (limited to 'fortnite_client')
-rw-r--r-- | fortnite_client/__init__.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fortnite_client/__init__.py b/fortnite_client/__init__.py index 393b250..387146a 100644 --- a/fortnite_client/__init__.py +++ b/fortnite_client/__init__.py @@ -8,6 +8,9 @@ from app_types import * __fortnite_account_key__ = 'fornite-account-key' +# Override default fortnitepy ios token with a new one supported by EpicGames +__ios_new_token__ = "YWY0M2RjNzFkZDkxNDUyMzk2ZmNkZmZiZDdhOGU4YTk6NFlYdlNFQkxGUlBMaDFoekdaQWtmT2k1bXF1cEZvaFo=" + # Intefaces for events class FriendPresenceObserver: async def update(self, display_name: str, playing: bool, party_size: int) -> None: @@ -56,7 +59,8 @@ class FortniteClient(fortnitepy.Client): code = input("Enter authorization code (https://www.epicgames.com/id/api/redirect?clientId=3446cd72694c4a4485d81b77adbb2141&responseType=code):") super().__init__( auth=fortnitepy.AuthorizationCodeAuth( - code = code + code = code, + ios_token = __ios_new_token__ ) ) @@ -64,7 +68,8 @@ class FortniteClient(fortnitepy.Client): device_auth_details = self.__device_auth.get_device_auth_details().get(__fortnite_account_key__, {}) super().__init__( auth=fortnitepy.DeviceAuth( - **device_auth_details + **device_auth_details, + ios_token = __ios_new_token__ ) ) |