The application should route to login if the user was automatically logged out / his session is no longer valid
As in title. I think it's either a feature or a bug. Now if you are automatically logged out you and keep the Tab/PWA App open you need to refresh page or go to login manually. The user should be automatically routed to the login page when it happens.
Oh, I misread this as the logout is broken.
This is a good idea, I'll check if I can implement it. I think I could add a request every 2-5 minutes to check if the session is expired, but I think that would prolong the lifetime of the session. I have similar problems in an other project as well.
@simjanos-dev you can try a "naive" approach -> if the front-end gets an Unauthorized Error from the API route to the login. That would require fixing bug that calls user settings and font endpoint on the login page but should work.