File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,7 @@ async def start(self) -> None:
9999 print ("Opening device code link in a new tab." )
100100
101101 device_code = await self .create_device_code ()
102- webbrowser .open (
103- f"https://www.epicgames.com/activate?userCode={ device_code [0 ]} " ,
104- new = 1 ,
105- )
102+ webbrowser .open (device_code [0 ], new = 1 )
106103
107104 user = await self .wait_for_device_code_completion (code = device_code [1 ])
108105 device_auths = await self .create_device_auths (user )
@@ -160,7 +157,7 @@ async def create_device_code(self) -> tuple:
160157 ) as request :
161158 data = await request .json ()
162159
163- return data ["user_code " ], data ["device_code" ]
160+ return data ["verification_uri_complete " ], data ["device_code" ]
164161
165162 async def wait_for_device_code_completion (self , code : str ) -> EpicUser :
166163 os .system ('cls' if sys .platform .startswith ('win' ) else 'clear' )
You can’t perform that action at this time.
0 commit comments