diff --git a/admin-api-frontend/src/index.js b/admin-api-frontend/src/index.js
index 5462c16..d47a259 100644
--- a/admin-api-frontend/src/index.js
+++ b/admin-api-frontend/src/index.js
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { PublicClientApplication, EventType } from '@azure/msal-browser';
-import { msalConfig } from './authConfig.js';
+import { msalConfig, loginRequest } from './authConfig.js';
import App from './App';
import 'bootstrap/dist/css/bootstrap.min.css';
@@ -33,8 +33,19 @@ msalInstance.addEventCallback((event) => {
const root = ReactDOM.createRoot(document.getElementById('root'));
-root.render(
-
-
-
-);
\ No newline at end of file
+if (!msalInstance.getActiveAccount()) {
+ await msalInstance.initialize();
+ msalInstance.loginPopup(loginRequest).then(response => {
+ root.render(
+
+
+
+ );
+ });
+} else {
+ root.render(
+
+
+
+ );
+}
\ No newline at end of file