Skip to content

Commit

Permalink
fix: timer reset (#162)
Browse files Browse the repository at this point in the history
stop idle timer resetting on session refresh
  • Loading branch information
jlangy authored Feb 21, 2024
1 parent 7224441 commit 6dbd7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ function Layout({ children, onLoginClick, onLogoutClick }: any) {
onLogoutClick();
},
timeout: 30 * 60 * 1000,
promptBeforeIdle: 25 * 60 * 1000,
disabled: session?.status !== 'authenticated',
promptBeforeIdle: 5 * 60 * 1000,
disabled: !['authenticated', 'loading'].includes(session?.status),
});

const rightSide = currentUser ? (
Expand Down

0 comments on commit 6dbd7a8

Please sign in to comment.