Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1661 | check if token is still valid on pag…
Browse files Browse the repository at this point in the history
…e load for SSO
  • Loading branch information
snyaggarwal committed Sep 11, 2023
1 parent 156845d commit 368d134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/users/UserOptions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ const UserOptions = () => {
}

React.useEffect(() => {
if(isLoggedIn() && isSSOEnabled())
if(isLoggedIn() && isSSOEnabled()) {
checkIfStillAuthenticated()
intervalId = setInterval(checkIfStillAuthenticated, 10000)
}
}, [])

return (
Expand Down

0 comments on commit 368d134

Please sign in to comment.