Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use egs's flow for epic login #4379

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

imLinguin
Copy link
Member

Instead of routing through legendary.gl/epiclogin we will call different url directly, this should prevent any issues with corrective actions etc..

I have also modified our useragent to contain mention about Heroic

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@imLinguin imLinguin added the pr:ready-for-review Feature-complete, ready for the grind! :P label Mar 3, 2025
@imLinguin imLinguin requested review from a team, arielj, flavioislima, CommandMC and Nocccer and removed request for a team March 3, 2025 21:27
Copy link
Collaborator

@arielj arielj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected and way more simple than before

const userAgent =
startUrl === epicLoginUrl
? 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) EpicGamesLauncher'
: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/200.0 HeroicGamesLauncher'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, maybe we don't need those double UA tbh, I only added this one to try to fix some issues with random errors on epic login, server errors.

Copy link
Member Author

@imLinguin imLinguin Mar 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking it may be worth keeping for some browser side loaded apps. Or in the future let users configure user agent strings for browser apps

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff with this refactor

@flavioislima flavioislima added this to the 2.16.1 Hotfix milestone Mar 9, 2025
@flavioislima flavioislima merged commit 259b848 into Heroic-Games-Launcher:main Mar 9, 2025
9 checks passed
@Heroic-Games-Launcher Heroic-Games-Launcher locked and limited conversation to collaborators Mar 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants