Skip to content

Commit

Permalink
fix: fixing session timeout #896 (DataBiosphere#3603)
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceRodrigues authored Aug 9, 2023
1 parent e73953d commit 2a69c08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion explorer/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import type { AppProps } from "next/app";
import { useEffect } from "react";
import TagManager from "react-gtm-module";

const SESSION_TIMEOUT = 15 * 60 * 1000; // 15 minutes

function MyApp({ Component, pageProps }: AppProps): JSX.Element {
// Set up the site configuration, layout and theme.
const appConfig = config();
Expand All @@ -41,7 +43,7 @@ function MyApp({ Component, pageProps }: AppProps): JSX.Element {
<DXConfigProvider config={appConfig} entityListType={entityListType}>
<Head />
<CssBaseline />
<AuthProvider>
<AuthProvider sessionTimeout={SESSION_TIMEOUT}>
<AppLayout>
<Header {...layout.header} />
<ExploreStateProvider entityListType={entityListType}>
Expand Down

0 comments on commit 2a69c08

Please sign in to comment.