In my situation, we have Shibboleth authentication proxy that sits between the client and the server. Since there may be cases when a user takes a lot of time to fill out a page without causing any HTTP requests to be made, the Shibboleth may end their session possibly causing the user to lose their work.
To implement keep-alive polling I've made a route for that in our backend. However, I have been unable to implement the actual polling in our React frontend. How do I implement making repeated HTTP requests for as long as the app is open in a client browser? The data returned from a keep-alive request is arbitrary and has no use in the frontend, thus this could possibly be done completely outside React.