File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11import "zod-openapi/extend" ;
2- import { Configuration , PublicClientApplication } from "@azure/msal-browser" ;
2+ import {
3+ BrowserCacheLocation ,
4+ Configuration ,
5+ PublicClientApplication ,
6+ } from "@azure/msal-browser" ;
37import { MsalProvider } from "@azure/msal-react" ;
48import ReactDOM from "react-dom/client" ;
59
@@ -19,12 +23,13 @@ const msalConfiguration: Configuration = {
1923 postLogoutRedirectUri : `${ window . location . origin } /logout` ,
2024 } ,
2125 cache : {
22- cacheLocation : "sessionStorage" ,
26+ cacheLocation : BrowserCacheLocation . LocalStorage ,
2327 storeAuthStateInCookie : true ,
2428 } ,
2529} ;
2630
2731const pca = new PublicClientApplication ( msalConfiguration ) ;
32+ pca . initialize ( ) ;
2833
2934ReactDOM . createRoot ( document . getElementById ( "root" ) ! ) . render (
3035 < MsalProvider instance = { pca } >
You can’t perform that action at this time.
0 commit comments