import React from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import { AuthProvider } from 'react-oidc-context'; import { Toaster } from 'react-hot-toast'; import App from './App'; import { oidcConfig } from './src/config/oidc'; const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error("Could not find root element to mount to"); } const onSigninCallback = () => { window.history.replaceState({}, document.title, '/'); }; const root = ReactDOM.createRoot(rootElement); root.render( { localStorage.removeItem('kaboot_session'); }} > );