Skip to content

Commit

Permalink
maybe this works idk
Browse files Browse the repository at this point in the history
  • Loading branch information
PranjalChaitanya committed Apr 28, 2024
1 parent 1a32e51 commit 3cd3b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin-api-frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import DeleteUserForm from "./components/DeleteUserForm/index.tsx";
import { MsalProvider } from '@azure/msal-react';
import { NextUIProvider } from "@nextui-org/react";
import { MsalAuthenticationTemplate } from '@azure/msal-react';
import { InteractionType } from '@azure/msal-browser';
import { EventType, InteractionType } from '@azure/msal-browser';
import { loginRequest } from "./authConfig";


Expand All @@ -20,6 +20,7 @@ const App = ({ instance }) => {
console.error("Ah fuck!")
return null;
}
instance.addEventCallback((event) => { if (event.eventType === EventType.SSO_SILENT_FAILURE && event.error?.errorCode === 'monitor_window_timeout') { instance.acquireTokenRedirect({ ...loginRequest, }); } });
console.log(acct);
return (
<MsalProvider instance={instance}>
Expand Down

0 comments on commit 3cd3b6c

Please sign in to comment.