Skip to content

Commit

Permalink
fix: session idled message is not displayed when user tries to login
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Jan 19, 2023
1 parent 96e9e40 commit f94bc6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ export default class App extends NextApp<AppProps> {

return (
<Sentry.ErrorBoundary fallback={ErrorFallback}>
{Component.isAccessProtected && (
<SessionTimeoutHandler modalDisplaySecondsBeforeLogout={120} />
)}
<PageRedirectHandler
environment={environment}
pageComponent={Component}
>
{Component.isAccessProtected && (
<SessionTimeoutHandler modalDisplaySecondsBeforeLogout={120} />
)}
<QueryRenderer
environment={environment}
fetchPolicy="store-and-network"
Expand Down Expand Up @@ -121,6 +121,7 @@ export default class App extends NextApp<AppProps> {
}}
/>
</PageRedirectHandler>

<ToasterHelper />
</Sentry.ErrorBoundary>
);
Expand Down

0 comments on commit f94bc6d

Please sign in to comment.