Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jan 13, 2024
1 parent f292b95 commit c6f61e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Layout = React.memo((props) => {

useEffect(() => {
//Check token expiration
if(authContext.sessionToken !== null && authContext.sessionExpiredAt < Math.round(new Date().getTime()/1000))
if(authContext.sessionToken === undefined || ( authContext.sessionToken !== null && authContext.sessionExpiredAt < Math.round(new Date().getTime()/1000)))
{
//expired
setOpen(true);
Expand Down

0 comments on commit c6f61e9

Please sign in to comment.