raspiblitz / raspiblitz-web

A mobile-first responsive Web UI for the RaspiBlitz
MIT License
61 stars 21 forks source link

login again if token still valid after page reload #758

Closed cstenglein closed 3 months ago

cstenglein commented 3 months ago

closes #751

When reloading the page, the SSE connection is closed, thus the eventErrorHandler in use-sse was fired and logout was called, which deleted the token.

Now I'm showing a error toast if the sse connection was closed.

Ran prettier as well, don't know why it didn't format that stuff before.