Skip to content

Commit 2a69c08

Browse files
fix: fixing session timeout #896 (#3603)
1 parent e73953d commit 2a69c08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

explorer/pages/_app.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import type { AppProps } from "next/app";
2020
import { useEffect } from "react";
2121
import TagManager from "react-gtm-module";
2222

23+
const SESSION_TIMEOUT = 15 * 60 * 1000; // 15 minutes
24+
2325
function MyApp({ Component, pageProps }: AppProps): JSX.Element {
2426
// Set up the site configuration, layout and theme.
2527
const appConfig = config();
@@ -41,7 +43,7 @@ function MyApp({ Component, pageProps }: AppProps): JSX.Element {
4143
<DXConfigProvider config={appConfig} entityListType={entityListType}>
4244
<Head />
4345
<CssBaseline />
44-
<AuthProvider>
46+
<AuthProvider sessionTimeout={SESSION_TIMEOUT}>
4547
<AppLayout>
4648
<Header {...layout.header} />
4749
<ExploreStateProvider entityListType={entityListType}>

0 commit comments

Comments
 (0)