Skip to content

Commit

Permalink
Merge pull request #1209 from jay-hodgson/PORTALS-3249b
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson authored Sep 17, 2024
2 parents 1392455 + 9db9d2c commit 002be16
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ export function ApplicationSessionManager(
} else {
refreshSession()
}
// PORTALS-3249: Set up an interval to call refreshSession every 60 seconds (60000 milliseconds)
const intervalId = setInterval(() => {
refreshSession()
}, 60000)

// Clean up the interval when the component is unmounted
return () => clearInterval(intervalId)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

Expand Down

0 comments on commit 002be16

Please sign in to comment.