From d099e4622fd8b7eaa6db1818bb8640e7c70785c3 Mon Sep 17 00:00:00 2001 From: PranjalChaitanya Date: Sun, 28 Apr 2024 16:20:47 -0500 Subject: [PATCH] my b --- admin-api-frontend/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-api-frontend/src/index.js b/admin-api-frontend/src/index.js index 36774b6..19043b0 100644 --- a/admin-api-frontend/src/index.js +++ b/admin-api-frontend/src/index.js @@ -14,7 +14,7 @@ import 'bootstrap/dist/css/bootstrap.min.css'; */ const msalInstance = new PublicClientApplication(msalConfig); -msalInstance.addEventCallback((event) => { if (event.eventType === EventType.SSO_SILENT_FAILURE && event.error?.errorCode === 'monitor_window_timeout') { instance.acquireTokenRedirect({ ...loginRequest, }); } }); +msalInstance.addEventCallback((event) => { if (event.eventType === EventType.SSO_SILENT_FAILURE && event.error?.errorCode === 'monitor_window_timeout') { msalInstance.acquireTokenRedirect({ ...loginRequest, }); } }); // Default to using the first account if no account is active on page load if (!msalInstance.getActiveAccount() && msalInstance.getAllAccounts().length > 0) {