I have an app which needs user authentication. Once the app is closed and re-opened, user is again prompted for credentials. I would like to add functionality where the user is automatically logged in even if the app is closed and re-opened within certain time frame. Is the best way to achieve this is via persisting credentials in settings and then clear those after certain time?
Thanks