fixed bugs in auth for frontend

This commit is contained in:
2026-05-04 21:48:06 +02:00
parent ff17a98c63
commit 87149026c7
+3 -5
View File
@@ -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);
},
};
}