added time for logout #7
@@ -102,11 +102,11 @@ const AuthInit: FC<WithChildren> = ({children}) => {
|
|||||||
const logOutSession = setTimeout(() => {
|
const logOutSession = setTimeout(() => {
|
||||||
logout()
|
logout()
|
||||||
}, Number(process.env.REACT_APP_LOGOUT_SESSION_TIMEOUT))
|
}, Number(process.env.REACT_APP_LOGOUT_SESSION_TIMEOUT))
|
||||||
// eslint-disable-next-line
|
|
||||||
|
|
||||||
return (() => {
|
return (() => {
|
||||||
clearInterval(logOutSession)
|
clearInterval(logOutSession)
|
||||||
})
|
})
|
||||||
|
// eslint-disable-next-line
|
||||||
}, [pathname])
|
}, [pathname])
|
||||||
|
|
||||||
return showSplashScreen ? <LayoutSplashScreen /> : <>{children}</>
|
return showSplashScreen ? <LayoutSplashScreen /> : <>{children}</>
|
||||||
|
|||||||
Reference in New Issue
Block a user