Fixes a bug that did not refresh the authentication session of users when they were logged in and stayed active. This led to users being automatically logged out after two hours. Now, users are only logged out if they have not been active for two hours.