Fix sharing
This commit is contained in:
parent
1bfe7e3437
commit
3e9a988748
6 changed files with 88 additions and 13 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue