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 1
1
import "zod-openapi/extend" ;
2
- import { Configuration , PublicClientApplication } from "@azure/msal-browser" ;
2
+ import {
3
+ BrowserCacheLocation ,
4
+ Configuration ,
5
+ PublicClientApplication ,
6
+ } from "@azure/msal-browser" ;
3
7
import { MsalProvider } from "@azure/msal-react" ;
4
8
import ReactDOM from "react-dom/client" ;
5
9
@@ -19,12 +23,13 @@ const msalConfiguration: Configuration = {
19
23
postLogoutRedirectUri : `${ window . location . origin } /logout` ,
20
24
} ,
21
25
cache : {
22
- cacheLocation : "sessionStorage" ,
26
+ cacheLocation : BrowserCacheLocation . LocalStorage ,
23
27
storeAuthStateInCookie : true ,
24
28
} ,
25
29
} ;
26
30
27
31
const pca = new PublicClientApplication ( msalConfiguration ) ;
32
+ pca . initialize ( ) ;
28
33
29
34
ReactDOM . createRoot ( document . getElementById ( "root" ) ! ) . render (
30
35
< MsalProvider instance = { pca } >
You can’t perform that action at this time.
0 commit comments