Logout shortly after logging in
Summary
Sporadically when logging in, the home page shows up for 1 - 2 seconds and then the user is redirected to the login page with the message "You have been logged in due to inactivity".
Steps to reproduce
Hard to reproduce, it seems like using a user account that has never logged in before increases the chance of getting the error message.
What is the expected correct behavior?
The user should only be logged out when he's been inactive for too long, but not shortly after logging in.
Possible fixes
This seems to be a race condition inside the login functionality. The login procedure requests the lifetime of the granted jwt without waiting for the request to finish. On the auto-logout component, this information is needed in order to calculate the time since the user's last interaction. As this information is sometimes missing, the user will be logged out.