From 87149026c79c3a1922f2f507b62e258fc9656a31 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Mon, 4 May 2026 21:48:06 +0200 Subject: [PATCH] fixed bugs in auth for frontend --- frontend/src/auth.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/auth.ts b/frontend/src/auth.ts index 56f3ee1..b0bcc97 100644 --- a/frontend/src/auth.ts +++ b/frontend/src/auth.ts @@ -54,11 +54,9 @@ export function getOidcConfig() { stateStore: storage, userStore: storage, onSigninCallback: () => { - window.history.replaceState( - {}, - document.title, - window.location.pathname + window.location.search, - ); + // Remove the OIDC response params so a reload doesn't try to process + // the same callback twice and fail with a missing state entry. + window.history.replaceState({}, document.title, window.location.pathname); }, }; }