Prompt for login when session expires
Currently when you've a PUBLIC dashboard open (with some feeds private) and the session expires (eg. you come back on your mobile device) it will start showing javascript errors and refresh doesn't work. Need to actively go to login page.
My suggestion is to implement a global mechanism that will pop-up a login modal prompt when required.
Thanks @chaveiro noted, I will look into this error, I fixed a number of similar errors in the admin module today
I've also seen other issue that might be related. If you're on inputs page with the device module installed. And there is a session expiring or the device api returns error (momentarily loss of connection) there will be a lot of javascript pop-up errors saying can't create device as its already existent. Related to https://github.com/emoncms/emoncms/issues/1693
On top of this I've experienced recently a problem where when the session expires a login prompt appears and when correct login is entered, the url changes to the referrer with an added slash // and the login prompt keeps appearing. Can't login more, only on anonymous tab. Seems some error with session data. This is on php8.0.