su-fit-vut / kachna-online

Students' Club U Kachničky: Member's portal
MIT License
5 stars 5 forks source link

Make use of service worker for refreshing token #100

Open FrNecas opened 2 years ago

FrNecas commented 2 years ago

It may be possible to keep refreshing the API token in the background thanks to service worker which would reduce the need for logging back to the application frequently. An example of doing something periodically can be found at https://angular.io/guide/service-worker-communications (this updates the app but a similar principle could perhaps be used for the token).