From 9b4ee449ada7659712f0b457f54ab22c760cd1e6 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Mon, 16 Nov 2026 13:22:25 +0000 Subject: [PATCH] fix(epic): force the sign-in form in the browser sign-in so an existing session cannot end in an error --- app/src/main/rust/stores/src/epic/account.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/rust/stores/src/epic/account.rs b/app/src/main/rust/stores/src/epic/account.rs index 5e1342383a..4b0dfdb6b0 100644 --- a/app/src/main/rust/stores/src/epic/account.rs +++ b/app/src/main/rust/stores/src/epic/account.rs @@ -28,7 +28,7 @@ pub fn loopback_redirect(port: u16) -> String { pub fn browser_start_url(redirect_uri: &str, state: &str) -> String { format!( - "{BROWSER_AUTHORIZE_URL}?client_id={CLIENT_ID}&response_type=code&redirect_uri={}&state={}", + "{BROWSER_AUTHORIZE_URL}?client_id={CLIENT_ID}&response_type=code&prompt=login&redirect_uri={}&state={}", net::percent_encode(redirect_uri), net::percent_encode(state) ) @@ -168,7 +168,7 @@ mod tests { assert_eq!(redirect, "http://localhost:43210/launcher/authorized"); assert_eq!( browser_start_url(&redirect, "a-b_c"), - "https://www.epicgames.com/id/authorize?client_id=34a02cf8f4414e29b15921876da36f9a&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A43210%2Flauncher%2Fauthorized&state=a-b_c" + "https://www.epicgames.com/id/authorize?client_id=34a02cf8f4414e29b15921876da36f9a&response_type=code&prompt=login&redirect_uri=http%3A%2F%2Flocalhost%3A43210%2Flauncher%2Fauthorized&state=a-b_c" ); }