Add user setup config
This commit is contained in:
parent
66f15b49b2
commit
342ff60b70
7 changed files with 230 additions and 18 deletions
12
index.tsx
12
index.tsx
|
|
@ -9,10 +9,20 @@ if (!rootElement) {
|
|||
throw new Error("Could not find root element to mount to");
|
||||
}
|
||||
|
||||
const onSigninCallback = () => {
|
||||
window.history.replaceState({}, document.title, window.location.pathname);
|
||||
};
|
||||
|
||||
const root = ReactDOM.createRoot(rootElement);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<AuthProvider {...oidcConfig}>
|
||||
<AuthProvider
|
||||
{...oidcConfig}
|
||||
onSigninCallback={onSigninCallback}
|
||||
onRemoveUser={() => {
|
||||
window.localStorage.clear();
|
||||
}}
|
||||
>
|
||||
<App />
|
||||
</AuthProvider>
|
||||
</React.StrictMode>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue