Fix sharing

This commit is contained in:
Joey Yakimowich-Payne 2026-01-16 09:42:12 -07:00
commit 3e9a988748
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
6 changed files with 88 additions and 13 deletions

View file

@ -31,6 +31,8 @@ if (!rootElement) {
throw new Error("Could not find root element to mount to");
}
const shouldSkipSigninCallback = !window.location.pathname.startsWith('/callback');
const onSigninCallback = () => {
window.history.replaceState({}, document.title, '/');
};
@ -41,6 +43,7 @@ root.render(
<BrowserRouter>
<AuthProvider
{...oidcConfig}
skipSigninCallback={shouldSkipSigninCallback}
onSigninCallback={onSigninCallback}
onRemoveUser={() => {
localStorage.removeItem('kaboot_session');