Repository navigation
Conversation
Epic's token response no longer includes `device_id`, so legendary's `user.json` lacks it. `User.init(from:)` required the key, decoding failed, and `retrieveUser()` returned nil — making `isSignedIn` false for accounts that are signed in. Mythic then reported "You aren't signed in to Epic Games" and kept reopening the sign-in window. `deviceID` is unused elsewhere, so it is now decoded/encoded only if present.
`signIn(authKey:)` discarded legendary's stderr and threw a generic `SignInError` whenever the success line was missing, so the alert never said why sign-in failed (e.g. an expired or rejected authorization code). Run the output through `handleCLIErrorOutput` first so the actual error is shown.
…th code page
The page text was parsed as JSON as-is, and any failure returned silently,
leaving the user on the raw JSON page with no alert or log. Parse only the
`{…}` object so surrounding text (e.g. WebKit's JSON viewer) doesn't break it,
and log an error when an authorization code is present but can't be parsed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Legendary saves Epic's OAuth token response as user.json exactly as received. A fresh sign-in can produce one with no device_id.
User.init(from:) required that key, so decoding failed and isSignedIn came back false even though legendary was signed in.
It's unclear whether Epic dropped the field for everyone or only for some accounts or clients; the model was written in Nov 2025 against files that did have it.
Mythic then logged "You aren't signed in to Epic Games" and kept reopening the sign-in window.
That window jumped straight to the raw auth-code JSON page because the web view still had the Epic session.