Skip to content

Commit 27962cb

Browse files
authored
[FIX] Epic Games Login + Update Legendary to v0.20.28 (#1763)
* chore: updated legendary version * feat: use authorization code instead of SID * feat: update SID Login * chore: types and redact code
1 parent f4044e8 commit 27962cb

43 files changed

Lines changed: 88 additions & 87 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

electron/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ const iconLight = fixAsarPath(join(__dirname, 'icon-light.png'))
6666
const installed = join(legendaryConfigPath, 'installed.json')
6767
const libraryPath = join(legendaryConfigPath, 'metadata')
6868
const fallBackImage = 'fallback'
69-
const epicLoginUrl =
70-
'https://www.epicgames.com/id/login?redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fid%2Fapi%2Fredirect'
69+
const epicLoginUrl = 'https://legendary.gl/epiclogin'
7170
const gogLoginUrl =
7271
'https://auth.gog.com/auth?client_id=46899977096215655&redirect_uri=https%3A%2F%2Fembed.gog.com%2Fon_login_success%3Forigin%3Dclient&response_type=code&layout=galaxy'
7372
const sidInfoUrl =

electron/launcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ function getRunnerCallWithoutCredentials(
637637
runnerPath: string
638638
): string {
639639
const commandArguments = Object.assign([], commandParts)
640-
// Redact sensitive arguments (SID for Legendary, token for GOGDL)
641-
for (const sensitiveArg of ['--sid', '--token']) {
640+
// Redact sensitive arguments (Authorization Code for Legendary, token for GOGDL)
641+
for (const sensitiveArg of ['--code', '--token']) {
642642
const sensitiveArgIndex = commandArguments.indexOf(sensitiveArg)
643643
if (sensitiveArgIndex === -1) {
644644
continue

electron/legendary/user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { session } from 'electron'
99
import { runLegendaryCommand } from './library'
1010

1111
export class LegendaryUser {
12-
public static async login(sid: string) {
13-
const commandParts = ['auth', '--sid', sid]
12+
public static async login(authorizationCode: string) {
13+
const commandParts = ['auth', '--code', authorizationCode]
1414

1515
logInfo('Logging in with Legendary.', LogPrefix.Legendary)
1616

public/bin/darwin/legendary

1.75 MB
Binary file not shown.

public/bin/linux/legendary

-269 KB
Binary file not shown.

public/bin/win32/legendary.exe

69.5 KB
Binary file not shown.

public/locales/ar/login.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"message": {
99
"part3": "متجر Epic هنا",
1010
"part4": "، قم بتسجيل الدخول إلى حسابك وانسخ",
11-
"part5": "رمز المعلومات SID",
11+
"part5": "رمز المعلومات authorization code",
1212
"part6": "الصق الخاص بك",
13-
"part7": "رقم SID",
13+
"part7": "رقم authorization code",
1414
"part8": "في صندوق الإدخال أدناه، ثم أنقر على زر تسجيل الدخول.",
1515
"part1": "لتسجيل الدخول وتثبيت ألعابك ، عليك أولاً اتباع الخطوات التالية:",
1616
"part2": "افتح ال"

public/locales/ar/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
},
209209
"login": {
210210
"loginWithEpic": "تسجيل الدخول بإستخدام Epic",
211-
"loginWithSid": "تسجيل الدخول بإستخدام SID",
211+
"loginWithSid": "تسجيل الدخول بإستخدام authorization code",
212212
"externalLogin": "تسجيل الدخول الخارجي"
213213
},
214214
"options": {

public/locales/az/login.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"part2": "açın",
88
"part3": "Epic Store burada",
99
"part4": ", hesabınıza daxil olun və kopyalayın",
10-
"part5": "SID məlumat nömrəsi",
10+
"part5": "authorization code məlumat nömrəsi",
1111
"part6": "Özünüzü yapışdırın",
12-
"part7": "SID nömrəsi",
12+
"part7": "authorization code nömrəsi",
1313
"part8": "aşağıdakı giriş qutusuna daxil edin və giriş düyməsini basın."
1414
},
1515
"status": {

public/locales/bg/login.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"part2": "Отворете",
88
"part3": "Epic Store от тук",
99
"part4": ", влезте в акаунта си и копирайте своя",
10-
"part5": "номер SID",
10+
"part5": "номер authorization code",
1111
"part6": "Поставете своя",
12-
"part7": "номер SID",
12+
"part7": "номер authorization code",
1313
"part8": "в полето по-долу и натиснете бутона за вход."
1414
},
1515
"status": {

0 commit comments

Comments
 (0)