I have a web based application that consists of multiple pages. When the user navigates from one portion of the site to another they move between these pages. I need to ensure that when a user has been logged in for an extended period of time, they get automatically signed out.
After reading through the
Authentication State Persistence section of the Firebase docs it doesn't seem like this is an option. I can pick between 'session' and 'none' types of state persistence, but none of these accomplish exactly what I am trying to do. Session won't work when the user moves between pages, and 'none' is even more stringent in the wrong direction.
I understand that I can mange the user's token in the back-end through cloud functions, but this is only relevant when the user interacts with a cloud function, and does not accomplish what I need.
Is there any way for the state of an auth session to automatically time out in the front end after a period of time?