kthcloud / console

kthcloud web console
https://cloud.cbh.kth.se
MIT License
3 stars 3 forks source link

Investigate real notifications using service worker #270

Open pierrelefevre opened 1 month ago

pierrelefevre commented 1 month ago

Since the app is spa/react it should be easy to add a service worker. We can then use the Notification and Push APIs to send out the existing notifications.

https://developer.mozilla.org/en-US/docs/Web/API/notification https://developer.mozilla.org/en-US/docs/Web/API/Push_API

pierrelefevre commented 2 weeks ago

Base work in 4b787ba, waiting on https://github.com/kthcloud/go-deploy/issues/667 before merging. Might be a good idea to handle the JWT in a more persistent way, the current way is prone to losing it if the background thread stops and restarts.

Also not sure how to handle the refresh token, I assume it needs to be refreshed at some point from keycloak