Skip to content

Commit

Permalink
my b
Browse files Browse the repository at this point in the history
  • Loading branch information
PranjalChaitanya committed Apr 28, 2024
1 parent 8fb35a9 commit d099e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-api-frontend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d099e46

Please sign in to comment.