added time for logout #7

Merged
ameye merged 1 commits from logout-timeout into master 2023-04-18 08:27:24 +00:00
+2 -2
View File
@@ -102,11 +102,11 @@ const AuthInit: FC<WithChildren> = ({children}) => {
const logOutSession = setTimeout(() => {
logout()
}, Number(process.env.REACT_APP_LOGOUT_SESSION_TIMEOUT))
// eslint-disable-next-line
return (() => {
clearInterval(logOutSession)
})
// eslint-disable-next-line
}, [pathname])
return showSplashScreen ? <LayoutSplashScreen /> : <>{children}</>