Add user setup config

This commit is contained in:
Joey Yakimowich-Payne 2026-01-13 16:18:46 -07:00
commit 342ff60b70
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
7 changed files with 230 additions and 18 deletions

View file

@ -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>