summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrii Morozov <snoopdesigns@gmail.com>2024-12-15 12:45:00 +0100
committerDmitrii Morozov <snoopdesigns@gmail.com>2024-12-15 12:45:00 +0100
commitda6365430d52156e1acc13f7a44ac0fe92a5be67 (patch)
tree4e034a0d7cb35e47a7e162b57b35745aec3ac244
parent3db304282c04b7bf4fa16484e81eaf7504d08045 (diff)
Replace old IOS clientId with new one
-rw-r--r--fortnite_client/__init__.py9
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__
)
)