feat(auth): protect aggregate console with password login
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
import { ConsoleAuthGate } from './auth/console-auth.js';
|
||||
import { AppShell } from './app-shell.js';
|
||||
import './styles.css';
|
||||
|
||||
@@ -9,6 +10,8 @@ if (!root) throw new Error('Missing application root');
|
||||
|
||||
createRoot(root).render(
|
||||
<StrictMode>
|
||||
<AppShell pathname={window.location.pathname} />
|
||||
<ConsoleAuthGate>
|
||||
<AppShell pathname={window.location.pathname} />
|
||||
</ConsoleAuthGate>
|
||||
</StrictMode>,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user