Currently, my Angular app includes authentication functionality that is working smoothly. The only issue is that the application/session/token expires when there is no user activity and the app remains open in the browser.
I am looking for a solution where the token remains valid unless the user actively logs out themselves.
I have an idea to address this challenge by sending a request to the API every 10 minutes to refresh the access token. However, I am unsure of how to implement this logic at the application level.
Does anyone have suggestions on where I can integrate this logic effectively?
Thank you in advance, Danyal